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

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

moonwalkerz/base58
==================

A PHP library for encoding and decoding Base58 strings and binary data.

1.0(1y ago)02MITPHPPHP &gt;=7.4

Since Mar 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/moonwalkerz/base58)[ Packagist](https://packagist.org/packages/moonwalkerz/base58)[ RSS](/packages/moonwalkerz-base58/feed)WikiDiscussions main Synced 1mo ago

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

Base58 Encoding and Decoding in PHP
===================================

[](#base58-encoding-and-decoding-in-php)

This repository provides a simple PHP class for encoding and decoding data using the Base58 algorithm. Base58 is a binary-to-text encoding scheme commonly used in cryptocurrencies like Bitcoin.

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

[](#installation)

Find the package on [Packagist](https://packagist.org/packages/moonwalkerz/base58).

```
composer require moonwalkerz/base58
```

Usage
=====

[](#usage)

Encoding a String
-----------------

[](#encoding-a-string)

To encode a string using Base58, use the encode method:

```
include 'vendor/autoload.php';
use Moonwalkerz\Base58\Base58;

$encoded = Base58::encode('Hello, World!');
echo "Encoded: $encoded\n"; // Output: Encoded: JxF12TrwUP45BMd
```

Decoding a Base58 String
------------------------

[](#decoding-a-base58-string)

To decode a Base58 string back to the original string, use the decode method:

```
include 'vendor/autoload.php';
use Moonwalkerz\Base58\Base58;

$decoded = Base58::decode('JxF12TrwUP45BMd');
echo "Decoded: $decoded\n"; // Output: Decoded: Hello, World!
```

Requirements
============

[](#requirements)

- PHP 7.4 or higher
- bcmath extension enabled

Contributing
============

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License
=======

[](#license)

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments
===============

[](#acknowledgments)

Base58 encoding/decoding algorithm inspired by Bitcoin's implementation.

🤑 Support Us 🤑
--------------

[](#-support-us-)

These codes make your life easier and you avoid wasting time?
Give us some RedBull!

BUSD(BEP20)
0x367B9207ACBC30022F9A7262320E36661D7Ffeb5

✉️ Contact Us: ✉️
-----------------

[](#️-contact-us-️)

Mail:
Telegram: @MoonWalkerzDev

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance45

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.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

427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d164ece0b7512a99bc483cbb9c58a96d1163d09afe54277f766f1dd09525710c?d=identicon)[inalto](/maintainers/inalto)

---

Top Contributors

[![Ygrev39](https://avatars.githubusercontent.com/u/88211631?v=4)](https://github.com/Ygrev39 "Ygrev39 (2 commits)")[![inalto](https://avatars.githubusercontent.com/u/6382732?v=4)](https://github.com/inalto "inalto (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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