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

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

alcamo/binary-data
==================

Simple classes the model binary data, in particular BCD

0.6.4(1mo ago)02462Apache-2.0PHPPHP 7.3 - 8.0

Since Jun 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rv1971/alcamo-binary-data)[ Packagist](https://packagist.org/packages/alcamo/binary-data)[ RSS](/packages/alcamo-binary-data/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (12)Used By (2)

Supplied classes
================

[](#supplied-classes)

Class `BinaryString`
--------------------

[](#class-binarystring)

Represents binary content, providing implicit conversion to hexadecimal string, `count()` (returning the number of bytes) and `[]`operations (accessing a single byte as its integer value).

Provides a number methods to convert from and to binary content and a number of common operations such as trimming on either side, as well as bitwise AND and OR operations.

Class `HexString`
-----------------

[](#class-hexstring)

Represents an uppercase hexadecimal string, potentially with an odd number of characters.

Class `EvenHexString`
---------------------

[](#class-evenhexstring)

Represents an uppercase hexadecimal string with an even number of characters.

Class `Bcd`
-----------

[](#class-bcd)

Represents [BCD](https://en.wikipedia.org/wiki/Binary-coded_decimal)-encoded data.

Provides methods to convert from and to integers.

Class `CompressedBcd`
---------------------

[](#class-compressedbcd)

Represents compressed numeric data as defined in the [EMV](https://en.wikipedia.org/wiki/EMV) specification.

The difference between `Bcd` and `CompressedBcd` is that in the former, data is right-justified and may be padded with `0` nibbles on the left, while in the latter, datav is left-justified and may be padded with `F` nibbles on the right.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance89

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

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

Every ~172 days

Recently: every ~295 days

Total

11

Last Release

55d ago

PHP version history (2 changes)0.1PHP 7.3 - 7.4

0.1.1PHP 7.3 - 8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/db9722b60c5a69929f1d1c7df3d0d8682d74ed19146a2cdd2dfffa7ddc4abc78?d=identicon)[rv1971](/maintainers/rv1971)

---

Top Contributors

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

---

Tags

binarybcd

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[alchemy/binary-driver

A set of tools to build binary drivers

19110.9M39](/packages/alchemy-binary-driver)[comcast/php-legal-licenses

A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.

821.1M9](/packages/comcast-php-legal-licenses)[wapmorgan/binary-stream

A handy tool for working with binary data

52263.1k6](/packages/wapmorgan-binary-stream)[ademarre/binary-to-text-php

Collection of binary-to-text encoding utilities for PHP. Includes Base32 support and much more.

40165.8k](/packages/ademarre-binary-to-text-php)[phar-io/composer-distributor

Base Code for a composer plugin that installs PHAR-files

13581.1k6](/packages/phar-io-composer-distributor)[yaroslavche/bitmask

BitMask, EnumBitMask

3453.7k1](/packages/yaroslavche-bitmask)

PHPackages © 2026

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