PHPackages                             sulaco-tech/base58 - 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. sulaco-tech/base58

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

sulaco-tech/base58
==================

Pretty lightweight implementation of Base58 encoding and deconding algorithms written in PHP.

1.0.0(6y ago)0311MITPHPPHP ^7.0

Since Mar 18Pushed 6y agoCompare

[ Source](https://github.com/sulaco-tech/base58-php)[ Packagist](https://packagist.org/packages/sulaco-tech/base58)[ RSS](/packages/sulaco-tech-base58/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (1)

base58-php
==========

[](#base58-php)

Pretty lightweight implementation of Base58 encoding and deconding algorithms written in PHP.

Install
-------

[](#install)

Install with [composer](https://getcomposer.org/).

```
$ composer require sulaco-tech/base58
```

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

[](#requirements)

This branch requires PHP 7.0 or up.

Usage
-----

[](#usage)

```
$base58 = new SulacoTech\Base58();

$data = "Hello World!";
$encoded = $base58->encode($data); // "2NEpo7TZRRrLZSi2U"
$decoded = $base58->decode($encoded); // "Hello World!"
```

Character sets
--------------

[](#character-sets)

Encoder support few predefined charset sets for coding algorithms:

- [Bitcoin](https://github.com/bitcoin/bitcoin/blob/master/src/base58.cpp)
- [Flickr](https://www.flickr.com/groups/api/discuss/72157616713786392/)
- [Ripple](https://wiki.ripple.com/Accounts)
- [IPFS](https://github.com/richardschneider/net-ipfs-core#base58)

You can also use any custom 58 characters. By default the encoder uses IPFS style character set.

```
use SulacoTech\Base58;

print Base58::CHARSET_GMP;
// 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv
print Base58::CHARSET_BITCOIN;
// 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
print Base58::CHARSET_FLICKR;
// 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ
print Base58::CHARSET_RIPPLE;
// rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz
print Base58::CHARSET_IPFS;
// 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

$base58 = new Base58(Base58::CHARSET_FLICKR);
$data = "Hello World!";
$encoded = $base58->encode($data); // "2nePN7syqqRkyrH2t"
$decoded = $base58->decode($encoded); // "Hello World!"
```

Testing
-------

[](#testing)

You can run tests with external (global) installation of [PHPUnit](https://phpunit.de).

```
$ phpunit tests
```

This branch was tested on PHP:

- 7.0.12
- 7.1.9
- 7.2.17
- 7.4.3

License
-------

[](#license)

This library is license under 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

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

2244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61331007?v=4)[sulaco-tech](/maintainers/sulaco-tech)[@sulaco-tech](https://github.com/sulaco-tech)

---

Top Contributors

[![sulaco-tech](https://avatars.githubusercontent.com/u/61331007?v=4)](https://github.com/sulaco-tech "sulaco-tech (2 commits)")

---

Tags

base58

### Embed Badge

![Health badge](/badges/sulaco-tech-base58/health.svg)

```
[![Health](https://phpackages.com/badges/sulaco-tech-base58/health.svg)](https://phpackages.com/packages/sulaco-tech-base58)
```

###  Alternatives

[tuupola/base58

Base58 encoder and decoder for arbitrary data

56609.6k22](/packages/tuupola-base58)[xobotyi/basen

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

1219.6k](/packages/xobotyi-basen)

PHPackages © 2026

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