PHPackages                             negasus/numeral-system - 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. negasus/numeral-system

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

negasus/numeral-system
======================

Numeral System

1.0(9y ago)014MITPHPPHP ~5.6|~7.0

Since Feb 12Pushed 9y agoCompare

[ Source](https://github.com/Negasus/NumeralSystem)[ Packagist](https://packagist.org/packages/negasus/numeral-system)[ Docs](https://github.com/Negasus/NumeralSystem)[ RSS](/packages/negasus-numeral-system/feed)WikiDiscussions master Synced yesterday

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

Negasus\\NumeralSystem
======================

[](#negasusnumeralsystem)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cdfe1e1c2b8aa872bf1281ec9ee2c8e40c3155567edcba6fbee10b4f88ea787b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6567617375732f6e756d6572616c2d73797374656d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/negasus/numeral-system)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/173c8722f0c8d1f6933548217ac81890ca6d0d5f61bf643143517e05fb928908/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4e6567617375732f4e756d6572616c53797374656d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Negasus/NumeralSystem)[![Total Downloads](https://camo.githubusercontent.com/518fc288d2c1167beb94207da264d86ab41c1bf6b633f5918e493ac5350d3607/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6567617375732f6e756d6572616c73797374656d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/negasus/numeralsystem)

Code and decode numbers with any numeral system.

Bin, Hex, your numeral systems with custom alphabet!

More info in the [wiki](https://github.com/Negasus/NumeralSystem/wiki)

Structure
---------

[](#structure)

```
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require negasus/numeralsystem
```

Usage
-----

[](#usage)

```
$numeralSystem = new Negasus\NumeralSystem(); // Default alphabet
echo $numeralSystem->encode(1048576); // see: 4OmW

$numeralSystem->setAlphabet($numeralSystem::ALPHABET_HEX);
echo $numeralSystem->encode(172224397); // see: A43EF8D

$numeralSystem->setAlphabet('AbCd');
echo $numeralSystem->encode(172224397); // see: CCbAAddCddCAdb
```

More info in the [wiki](https://github.com/Negasus/NumeralSystem/wiki)

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

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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

3425d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/806728?v=4)[Andrew Privalov](/maintainers/negasus)[@negasus](https://github.com/negasus)

---

Top Contributors

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

---

Tags

composerpackagephpnumeral-systemNegasus

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/negasus-numeral-system/health.svg)

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

PHPackages © 2026

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