PHPackages                             carlosafonso/php-base24 - 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. carlosafonso/php-base24

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

carlosafonso/php-base24
=======================

A Base24 encoder and decoder

1.0.0(6y ago)0102MITPHPPHP ~7.2

Since Mar 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/carlosafonso/php-base24)[ Packagist](https://packagist.org/packages/carlosafonso/php-base24)[ Docs](https://github.com/carlosafonso/php-base24)[ RSS](/packages/carlosafonso-php-base24/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

carlosafonso/php-base24
=======================

[](#carlosafonsophp-base24)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0ded113bd9397b846044fe59b02b0d00fabeb40edae08c4c406146800e23c5c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361726c6f7361666f6e736f2f7068702d6261736532342e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carlosafonso/php-base24)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9e0dde53649634206a8a2a6b5c8bf54dc959ac1c65920ea784666db14f90a5da/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6361726c6f7361666f6e736f2f7068702d6261736532342f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/carlosafonso/php-base24)[![Coverage Status](https://camo.githubusercontent.com/e0607d38ad805a5a515788ee8039e40c81ab00faa57accec1c2ff8e25109bd33/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6361726c6f7361666f6e736f2f7068702d6261736532342e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/carlosafonso/php-base24/code-structure)[![Quality Score](https://camo.githubusercontent.com/8fd5355f17889848161a296db3d9074b961499b4152145119982317b521a296d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6361726c6f7361666f6e736f2f7068702d6261736532342e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/carlosafonso/php-base24)[![Total Downloads](https://camo.githubusercontent.com/dbcefbee8ba0d1e84f29c11dd3f6d65d9c14919db05dfd63b6d75d136447f779/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361726c6f7361666f6e736f2f7068702d6261736532342e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carlosafonso/php-base24)

A PHP Base24 binary-to-text encoder, port of the original Kotlin implementation by @kuon at .

Install
-------

[](#install)

Via Composer

```
$ composer require carlosafonso/php-base24
```

Usage
-----

[](#usage)

```
$encoder = new \Afonso\Base24\Encoder();
$encoder->encode([0, 0, 0, 0]); // 'ZZZZZZZ'
$encoder->decode('ZZZZZZZ'); // [0, 0, 0, 0]
$encoder->decode('zzzzzzz'); // [0, 0, 0, 0]
```

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [Carlos Afonso](https://github.com/carlosafonso)
- [Niklas Mollenhauer](https://github.com/nikeee)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

2252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/298322ba620ba6518bce36e896723f1f771c4ee6257ab49548c45dcb06e2b9ce?d=identicon)[carlosafonso](/maintainers/carlosafonso)

---

Top Contributors

[![carlosafonso](https://avatars.githubusercontent.com/u/1700229?v=4)](https://github.com/carlosafonso "carlosafonso (18 commits)")[![nikeee](https://avatars.githubusercontent.com/u/4068864?v=4)](https://github.com/nikeee "nikeee (3 commits)")

---

Tags

carlosafonsobase24php-base24

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/carlosafonso-php-base24/health.svg)

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

PHPackages © 2026

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