PHPackages                             phplang/base65536 - 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. phplang/base65536

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

phplang/base65536
=================

Base65536 encode/decode utility

1.0.0(9y ago)1123[1 issues](https://github.com/phplang/base65536/issues)MITPHPPHP ^7.0

Since Jun 25Pushed 9y agoCompare

[ Source](https://github.com/phplang/base65536)[ Packagist](https://packagist.org/packages/phplang/base65536)[ Docs](https://github.com/phplang/base65536)[ RSS](/packages/phplang-base65536/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

base65536
=========

[](#base65536)

Base65536 is a binary encoding optimised for UTF-32-encoded text and Twitter. This PHP composer package, `phplang/base65536`, is loosely based on [qntm/base65536](https://github.com/qntm/base65536).

Usage
-----

[](#usage)

```
use \PhpLang\Base65536;

$buf = 'hello world';
$str = Base65536::encode($buf);
echo $str; // 6 codes points, '驨ꍬ啯𒁷ꍲᕤ'

var_dump($buf === Base65536::decode($str)); // bool(true)
```

#### Note

[](#note)

Per the spec, the default encoding used for input to `decode()` and output from `encode()` is [CESU-8](https://en.wikipedia.org/wiki/CESU-8), a variant of `UTF-8` which encodes split `UTF-16` surrogate pairs. If you want true `UTF-8` output, you must specify so using the second parameter to `encode()` and `decode()`.

License
-------

[](#license)

MIT, to match the generous licensing of the original. :D

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity13

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

3292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e7fd24eebfcbd0e9753a50a5ab51c025295665081e35addb79bc2cd7f93fa0d?d=identicon)[sgolemon](/maintainers/sgolemon)

---

Top Contributors

[![sgolemon](https://avatars.githubusercontent.com/u/812538?v=4)](https://github.com/sgolemon "sgolemon (1 commits)")

---

Tags

base65536

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phplang-base65536/health.svg)

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

PHPackages © 2026

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