PHPackages                             davidfricker/basechanger - 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. davidfricker/basechanger

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

davidfricker/basechanger
========================

High precision arbitrary base changer

v2(9y ago)118[1 issues](https://github.com/DavidFricker/PHP-binary-base-changer/issues)MITPHPPHP ^5.3.3 || ^7.0

Since Apr 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/DavidFricker/PHP-binary-base-changer)[ Packagist](https://packagist.org/packages/davidfricker/basechanger)[ RSS](/packages/davidfricker-basechanger/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP binary base changer
=======================

[](#php-binary-base-changer)

Change raw binary bytes to and from an arbitrary base e.g. 36, 58, or 64. This package stands in place of PHP's native `base_convert()` function and in doing so provides support for arbitrarily large numbers.

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

[](#requirements)

This package requires the `GMP` PHP extension to be installed.

Install
-------

[](#install)

Via composer:

`composer require davidfricker/basechanger`

Usage
-----

[](#usage)

```
use DavidFricker\BaseChanger\GMP;

$bytes = openssl_random_pseudo_bytes(32);
$base = 64;

$base_converted = GMP::changeTo($bytes, $base);
$base_reversed = GMP::changeFrom($base_converted, $base);
```

Licence
-------

[](#licence)

This code is released under MIT. Full licence can be found in the licence file.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b261da4583f1c88fcf9d392ba06c680083a0420c077ce954ec8d0c20d4f398c?d=identicon)[sousdev](/maintainers/sousdev)

---

Top Contributors

[![DavidFricker](https://avatars.githubusercontent.com/u/6656039?v=4)](https://github.com/DavidFricker "DavidFricker (6 commits)")

### Embed Badge

![Health badge](/badges/davidfricker-basechanger/health.svg)

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

PHPackages © 2026

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