PHPackages                             deemru/abcode - 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. deemru/abcode

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

deemru/abcode
=============

ABC (alphabet) encode/decode

1.0.7(12mo ago)010.7k↑350%3MITPHPPHP &gt;=5.4CI passing

Since Jan 12Pushed 12mo ago1 watchersCompare

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

READMEChangelog (6)DependenciesVersions (9)Used By (3)

ABCode
======

[](#abcode)

[![packagist](https://camo.githubusercontent.com/78371881531720a7765616f1773f44be3c05e278eff9f4a7b4b35d9a397a6a24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465656d72752f6162636f64652e737667)](https://packagist.org/packages/deemru/abcode) [![php-v](https://camo.githubusercontent.com/82267ab08a10b9dbe56b0dd54548dddc7926f1c66eac9d2cc40b035e52188080/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465656d72752f6162636f64652e737667)](https://packagist.org/packages/deemru/abcode) [![GitHub](https://camo.githubusercontent.com/3c2d985b4393a9fdeec88385647138443bf54f9f3cf89c2038606082da20c3db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465656d72752f4142436f64652f7068702e796d6c3f6c6162656c3d676974687562253230616374696f6e73)](https://github.com/deemru/ABCode/actions/workflows/php.yml) [![codacy](https://camo.githubusercontent.com/2317582477319c2751defe4a50a58ccfe38ac0e61112b7c500d1cdb0555848f6/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f37613364666362336564383634326336386530333930303863643836633366632e7376673f6c6162656c3d636f64616379)](https://app.codacy.com/gh/deemru/ABCode/files) [![license](https://camo.githubusercontent.com/64176bd643f373c636f4be01055d0d089de647cd29fe7fb1e82b36fa4988ad3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465656d72752f6162636f64652e737667)](https://packagist.org/packages/deemru/abcode)

[ABCode](https://github.com/deemru/ABCode) is a universal (single byte per character) alphabet converter for PHP.

- Built in base58
- Convert strings to your alphabet
- Convert between alphabets

Usage
-----

[](#usage)

```
// Built in base58
$data = ABCode::base58()->encode( 'Hello, world!' );
if( $data !== '72k1xXWG59wUsYv7h2' )
    exit( 1 );

// Convert strings to your alphabet
$abcode = new ABCode( 'my_ABC' );
$data = $abcode->encode( $data );
if( $data !== 'BAAy_Cmm_BA_AC_BCA_A_ymymCCmyyBBABBACCyBm___mA_BAm_yA__' )
    exit( 1 );

// Convert between alphabets
$abcode = new ABCode( 'my_ABC', 'another_ABC-123' );
$data = $abcode->decode( $data );
if( $data !== 'otah2_en3_o22ABhhrroA1eCAC3ronBn3t2-o' )
    exit( 1 );
```

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

[](#requirements)

- [PHP](http://php.net) &gt;=5.4
- [GMP](http://php.net/manual/en/book.gmp.php)

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

[](#installation)

Require through Composer:

```
{
    "require": {
        "deemru/abcode": "1.0.*"
    }
}
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance50

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~331 days

Recently: every ~467 days

Total

8

Last Release

363d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10706633?v=4)[Dmitrii Pichulin](/maintainers/deemru)[@deemru](https://github.com/deemru)

---

Top Contributors

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

---

Tags

base26base36base52base58base62decodeencodephpbase62base58base36base52base26baseNNNbaseNNbaseN

### Embed Badge

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

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

###  Alternatives

[tuupola/base62

Base62 encoder and decoder for arbitrary data

1994.3M35](/packages/tuupola-base62)[elfsundae/laravel-hashid

A simple, elegant way to obfuscate your data by generating reversible, non-sequential, URL-safe identifiers.

415246.3k2](/packages/elfsundae-laravel-hashid)[tuupola/ksuid

K-Sortable Globally Unique IDs

1081.2M4](/packages/tuupola-ksuid)[xobotyi/basen

Text and integers encoding utilities for PHP with no extensions dependencies. Base32, Base58, Base64 and much more!

1219.6k](/packages/xobotyi-basen)[tuupola/base58

Base58 encoder and decoder for arbitrary data

56609.6k22](/packages/tuupola-base58)[base62/base62

base62 encoder and decoder also for big numbers with Laravel integration

169.5k](/packages/base62-base62)

PHPackages © 2026

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