PHPackages                             skleeschulte/base32 - 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. skleeschulte/base32

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

skleeschulte/base32
===================

Base32 encoding and decoding class (RFC 4648, RFC 4648 extended hex, Crockford, z-base-32/Zooko).

0.0.2(10y ago)17314.5k—5.9%4[1 PRs](https://github.com/skleeschulte/php-base32/pulls)9MITPHPPHP &gt;=5.2.0

Since Nov 19Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (9)

php-base32
==========

[](#php-base32)

PHP base32 encoding/decoding class (RFC 4648 standard and extended hex, Crockford, z-base-32/Zooko)

This class provides static methods to encode and decode data to/from the following encodings:

- base32 (RFC 4648)
- base32 extended hex (RFC 4648)
- base32 Crockford
- base32 Zooko (z-base-32)

For each encoding, there are methods for encoding/decoding byte-strings and for encoding/decoding non-negative integers of arbitrary length. To handle integers of arbitrary length, PHP's BC Math extension is used whenever PHP's internal integer type is not sufficient to store/process the data.

All exceptions thrown by this class will have an exception code corresponding to one of the codes defined in the class constants at the beginning of the class.

This class is designed to be fast and memory efficient and is fully documented using PHPDoc-blocks.

### Installation

[](#installation)

By composer

```
composer require skleeschulte/base32
```

manual:

```
wget https://codeload.github.com/skleeschulte/php-base32/zip/master
```

If you find any bugs or have suggestions for improvements, you are welcome to create a new issue at  .

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

3833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/259a5964a54b0e4467cd569dc41ef80bacd55280f5748819740039fb15ab009e?d=identicon)[skleeschulte](/maintainers/skleeschulte)

---

Top Contributors

[![skleeschulte](https://avatars.githubusercontent.com/u/3659947?v=4)](https://github.com/skleeschulte "skleeschulte (10 commits)")[![bakroistvan](https://avatars.githubusercontent.com/u/1192500?v=4)](https://github.com/bakroistvan "bakroistvan (2 commits)")

---

Tags

encodedecodeintegerbase32bcmathcrockfordrfc4686z-base-32zookobytestring

### Embed Badge

![Health badge](/badges/skleeschulte-base32/health.svg)

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

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.4k48.6M278](/packages/hashids-hashids)[christian-riesen/base32

Base32 encoder/decoder according to RFC 4648

13331.8M61](/packages/christian-riesen-base32)[sqids/sqids

Generate short YouTube-looking IDs from numbers

5781.4M33](/packages/sqids-sqids)[dflydev/base32-crockford

Encode/decode numbers using Douglas Crockford's Base32 Encoding

14379.1k1](/packages/dflydev-base32-crockford)[torann/hashids

Laravel package for Hashids

54335.1k](/packages/torann-hashids)[delight-im/base64

Simple and convenient Base64 encoding and decoding for PHP

15158.1k6](/packages/delight-im-base64)

PHPackages © 2026

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