Skip to content

phpinnacle/buffer

Repository files navigation

PHPinnacle Buffer

Latest Version on Packagist Software License Coverage Status Quality Score Total Downloads

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.

Install

Via Composer

$ composer require phpinnacle/buffer

Basic Usage

<?php

use PHPinnacle\Buffer\ByteBuffer as Buffer;

// AMQP protocol header
$buffer = new Buffer;
$buffer
    ->append('AMQP')
    ->appendUint8(0)
    ->appendUint8(0)
    ->appendUint8(9)
    ->appendUint8(1)
;

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Simple library for operating binary data in PHP

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages