PHPinnacle Buffer is a simple tool for operating binary data in PHP. Mostly it simply wraps PHP pack/unpack functions.
Code is mostly based on bunnyphp, Buffer class implemenation.
Via Composer
$ composer require phpinnacle/buffer
<?php
use PHPinnacle\Buffer\ByteBuffer as Buffer;
// AMQP protocol header
$buffer = new Buffer;
$buffer
->append('AMQP')
->appendUint8(0)
->appendUint8(0)
->appendUint8(9)
->appendUint8(1)
;
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.