PHPackages                             phpbinary/phpbinary - 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. phpbinary/phpbinary

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

phpbinary/phpbinary
===================

A PHP library to work with binary data.

1.0.0(9y ago)6252MITPHPPHP ~5.5|~7.0

Since Nov 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/phpbinary/phpbinary)[ Packagist](https://packagist.org/packages/phpbinary/phpbinary)[ Docs](https://github.com/phpbinary/phpbinary)[ RSS](/packages/phpbinary-phpbinary/feed)WikiDiscussions master Synced 2d ago

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

phpbinary
=========

[](#phpbinary)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9e84efd1df2e4e685ce6acfa362cf8896dc35b7495640ae056770809578b486d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687062696e6172792f70687062696e6172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpbinary/phpbinary)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6dd1e180684da52e03b123bb1e3389e44fb9e77669795d7e22ee6c52a4b2ab78/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70687062696e6172792f70687062696e6172792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpbinary/phpbinary)[![Coverage Status](https://camo.githubusercontent.com/6e1f6d070eed4b9645639e1da9850e48a0d02fc64964f5593442a583bdf69f57/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f70687062696e6172792f70687062696e6172792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpbinary/phpbinary/code-structure)[![Quality Score](https://camo.githubusercontent.com/d896b0aad63e0f887a68967ca5550c497b1bb9a6cc3c98ac5bbba9c661956640/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f70687062696e6172792f70687062696e6172792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpbinary/phpbinary)[![Total Downloads](https://camo.githubusercontent.com/19d358e471fe351c2a2042f7a7ebbecbd5603fb972ee7046477bf993dffd94a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70687062696e6172792f70687062696e6172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpbinary/phpbinary)

A PHP library that can be used to work with binary data.

Install
-------

[](#install)

Via Composer

```
$ composer require phpbinary/phpbinary
```

Usage
-----

[](#usage)

```
$stream = new Stream(fopen('awesome.bin', 'rb'));
$value = $stream->readInt16();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the issue tracker.

Credits
-------

[](#credits)

- [Walter Tamboer](https://github.com/waltertamboer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3519d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ee7f711ef4d45ada0ac92c7ab2f548055a7cfbe718da6c4bbb81b2f6693c528?d=identicon)[waltertamboer](/maintainers/waltertamboer)

---

Top Contributors

[![waltertamboer](https://avatars.githubusercontent.com/u/508054?v=4)](https://github.com/waltertamboer "waltertamboer (4 commits)")

---

Tags

binaryphpreaderstreamwriterphpbinary

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phpbinary-phpbinary/health.svg)

```
[![Health](https://phpackages.com/badges/phpbinary-phpbinary/health.svg)](https://phpackages.com/packages/phpbinary-phpbinary)
```

###  Alternatives

[regex-guard/regex-guard

A wrapper that allows you to validate regular expressions and handle normally uncatchable PCRE compilation warnings

24530.3k8](/packages/regex-guard-regex-guard)[elgentos/largeconfigproducts

943.3k](/packages/elgentos-largeconfigproducts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
