PHPackages                             lum/lum-encode - 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. lum/lum-encode

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

lum/lum-encode
==============

Lum Encoding Utilities

v3.4.1(2y ago)0771MITPHP

Since Sep 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/supernovus/lum.encode.php)[ Packagist](https://packagist.org/packages/lum/lum-encode)[ RSS](/packages/lum-lum-encode/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (3)Versions (20)Used By (1)

lum.encode.php
==============

[](#lumencodephp)

Summary
-------

[](#summary)

A set of libraries for encoding certain kinds of data in PHP.

Classes
-------

[](#classes)

ClassDescriptionLum\\Encode\\Base91A simple `Base91` encoder/decoder.Lum\\Encode\\HashA OO wrapper around the php hash functions.Lum\\Encode\\Safe64Store serialized data as a URL-friendly string.Lum\\Encode\\UtilMisc utility functions.#### UBJSON

[](#ubjson)

The `UBJSON` Draft-9 implementation that used to be a part of this library has been removed, but a brand new Draft-12 implementation is now included via the [lum-ubjson](https://github.com/supernovus/lum.ubjson.php) package, which is included as one of the dependencies of this library. While the new library has a new public API, it also offers enough of the old public API to be a drop-in replacement.

#### Safe64

[](#safe64)

While `Safe64` was originally just a URL-safe variant of `Base64`, the data extension added in `v3` makes it into a simple way to store simple objects as URL-safe strings using an underlying serialization format (`JSON`, `UBJSON`, or PHP's own `Serialize` format are currently supported.)

A pure [Javascript implementation](https://github.com/supernovus/lum.encode.js)that works in browsers or in a CommonJS environment is also available.

Official URLs
-------------

[](#official-urls)

This library can be found in two places:

- [Github](https://github.com/supernovus/lum.encode.php)
- [Packageist](https://packagist.org/packages/lum/lum-encode)

Author
------

[](#author)

Timothy Totten

License
-------

[](#license)

[MIT](https://spdx.org/licenses/MIT.html)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~127 days

Total

19

Last Release

1085d ago

Major Versions

v1.x-dev → v2.0.02021-12-13

v2.x-dev → v3.0.02021-12-31

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.1.3PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff04349507190155013e4a94a8b14860a7ac57afce4ba97961c7c79bd023dd7?d=identicon)[supernovus](/maintainers/supernovus)

### Embed Badge

![Health badge](/badges/lum-lum-encode/health.svg)

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

###  Alternatives

[politriukas/avataaars

PHP SVG avatar generator based on https://github.com/fangpenlin/avataaars-generator

112.0k](/packages/politriukas-avataaars)

PHPackages © 2026

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