PHPackages                             t3ran13/bytebuffer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. t3ran13/bytebuffer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

t3ran13/bytebuffer
==================

Node.js inspired byte stream buffer for PHP.

v1.0.6(5y ago)152112MITPHP

Since Dec 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/t3ran13/ByteBuffer)[ Packagist](https://packagist.org/packages/t3ran13/bytebuffer)[ RSS](/packages/t3ran13-bytebuffer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (2)

PHP Library for reading and writing binary data
===============================================

[](#php-library-for-reading-and-writing-binary-data)

[![Build Status](https://camo.githubusercontent.com/e875790d93571c03a2b8d0c02c34afa34b4fefb3577cedb2e34ca83ad97296a6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e6573517569636b2f427974654275666665722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/nesQuick/ByteBuffer) [![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)

I intentionally needed that for writing a PHP Client for [TrafficCop](https://github.com/santosh79/traffic_cop/). But the source grows so I decided to move it into an own package. You can also call this a [pack()](http://www.php.net/manual/en/function.pack.php) wrapper.

Install Via Composer
--------------------

[](#install-via-composer)

```
composer require t3ran13/bytebuffer

```

Example
-------

[](#example)

A simple usage example could look like this

```
