This extension provides a high performance byte buffer implementation for PHP. Replacement for pack()
, unpack()
, and pmmp/BinaryUtils
⚠️ This extension is still under development. There is a possibility that this extension will crash or behave incorrectly.
LE
& BE
performance is ~2x faster than pack()
and unpack()
ByteBuf->read
and ByteBuf->write
performance is ~2x fasterByteBuf->read
performance is ~1.5x fasterSelf-explanatory, see bytebuf.stub.php and tests
/path/to/php-src/ext/bytebuf
phpsdk-vs17-x64.bat
. Run the following commands:cd /path/to/php-src
buildconf
./configure --enable-bytebuf (...other options)
make # For Linux
nmake # For Windows