PHPackages                             shiyan/binary - 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. shiyan/binary

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

shiyan/binary
=============

Binary strings/files parsing and composing.

0.2.1(7y ago)010MITPHPPHP ^7.1

Since Aug 2Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Binary
======

[](#binary)

[![Build Status](https://camo.githubusercontent.com/9708ecdfc8a147978704ae1c9d93cbb838ee3dd77c959ea3348cc745c1335fa5/68747470733a2f2f7472617669732d63692e6f72672f6d696b6573686979616e2f62696e6172792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mikeshiyan/binary)

PHP library for binary strings/files parsing and composing.

Best suited for use as a [Composer](https://getcomposer.org) library.

Requirements
------------

[](#requirements)

- PHP ≥ 7.1
- GMP extension

Installation
------------

[](#installation)

To add this library to your Composer project:

```
composer require shiyan/binary

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Every ~7 days

Total

3

Last Release

2874d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3637657?v=4)[Mike Shiyan](/maintainers/mikeshiyan)[@mikeshiyan](https://github.com/mikeshiyan)

---

Tags

binarycomposerfilesgmpoopphpstringsphpfilesstringsbinaryOOPgmp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[glowy/strings

Strings Component provide a fluent, object-oriented interface for working with multibyte string, allowing you to chain multiple string operations together using a more readable syntax compared to traditional PHP strings functions.

183.4k2](/packages/glowy-strings)[ramazancetinkaya/byte-formatter

A modern PHP library for formatting and parsing byte values with precision and flexibility.

144.6k](/packages/ramazancetinkaya-byte-formatter)

PHPackages © 2026

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