PHPackages                             msst/byte-buffer - 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. msst/byte-buffer

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

msst/byte-buffer
================

A wrapper for the PHP pack() function. Simple handling of bytes in PHP (original by Ole 'nesQuick' Michaelis)

v1.2(7y ago)0467MITPHP

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CorvinSteindl/ByteBuffer)[ Packagist](https://packagist.org/packages/msst/byte-buffer)[ RSS](/packages/msst-byte-buffer/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/c3c4727f28d9eb1b7e0eff3098d7998dcd3cb25d3a760fc5d43b42a4e458954a/68747470733a2f2f7472617669732d63692e6f72672f436f7276696e537465696e646c2f427974654275666665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CorvinSteindl/ByteBuffer)

This is a improved rewrite of the [Project from OleMchls](https://github.com/OleMchls/ByteBuffer)You can also call this a [pack()](http://www.php.net/manual/en/function.pack.php) wrapper.

Additional Features
-------------------

[](#additional-features)

- Autoincrement Offset
- Write Int32, Int64, UInt64 and UTF8 Strings

Install
-------

[](#install)

Installation should be done via [composer](http://packagist.org/).

```
composer require msst/byte-buffer

```

Or

```
{
    "require": {
        "msst/byte-buffer": "dev-master"
    }
}

```

Example
-------

[](#example)

A simple usage example could look like this

```
