PHPackages                             shanginn/smolid - 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. shanginn/smolid

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

shanginn/smolid
===============

smol id generator

2.1.0(2y ago)0293MITPHPPHP &gt;=8.2

Since Dec 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shanginn/smolid)[ Packagist](https://packagist.org/packages/shanginn/smolid)[ RSS](/packages/shanginn-smolid/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Fast and secure unique smol ID generator, that look like this:

```
JIN5gNQEwht8999c4xZx9
88AFNNkR1RJI1gs8BBwxV
c54wMAUAR4wkFs9dN9Jts

```

Smaller than UUID and copy-paste friendly.

Usage
=====

[](#usage)

```
// Basic:
$id = (new Smolid())->generate(); // Yd0AwdV80s8oRs0odN8hZ

// Custom alphabet:
$id = (new Smolid(alphabet: Alphabet::HEXADECIMAL_UPPERCASE))->generate(); // FE3782DA33AAA5ED96BEC

// Custom size:
$id = (new Smolid())->generate(size: 10); // N0BRRpNgpE
```

> Inspired by [Nano ID](https://github.com/ai/nanoid)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Every ~0 days

Total

4

Last Release

928d ago

Major Versions

1.0.1 → 2.0.02023-12-10

PHP version history (2 changes)1.0.0PHP &gt;=8.3

2.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/311e425711f60c09486c23252696fbe4dfa77e9b0dd5517bc89b288ac2f58655?d=identicon)[shanginn](/maintainers/shanginn)

---

Top Contributors

[![shanginn](https://avatars.githubusercontent.com/u/3357943?v=4)](https://github.com/shanginn "shanginn (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shanginn-smolid/health.svg)

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

PHPackages © 2026

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