PHPackages                             biohzrdmx/humanids-php - 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. biohzrdmx/humanids-php

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

biohzrdmx/humanids-php
======================

Human-readable identifier generation

1.0.0(1y ago)013MITPHPPHP &gt;=8.1

Since Oct 29Pushed 1y ago1 watchersCompare

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

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

humanids-php
============

[](#humanids-php)

Human-readable identifier generation

The easiest way to generate identifiers that are easy to read, easy to remember and easy to understand if someone gives it to you.

### Basic usage

[](#basic-usage)

First require `biohzrdmx/humanids-php` with Composer.

Then you must build a `Generator` instance and to do so you must pass an array of `TokenInterface` implementations, the library includes some common ones to add random adjectives, verbs, animals, numbers, strings, etc.

For example, you can get identifiers in the form `adjective-animal-number[1-100]{3}` with this call:

```
use Humanids\Generator;
use Humanids\Tokens\AdjectiveToken;
use Humanids\Tokens\AnimalToken;
use Humanids\Tokens\NumberToken;

$tokens = [
    new AdjectiveToken(),
    new AnimalToken(),
    new NumberToken(1, 100, 3),
];
$generator = new Generator($tokens);
$identifier = $generator->generate();
```

Or with this call you'll get identifiers in the form `ec2-adjective-animal-number[1-999]{3}-string{4}`:

```
use Humanids\Generator;
use Humanids\Tokens\AdjectiveToken;
use Humanids\Tokens\AnimalToken;
use Humanids\Tokens\FixedToken;
use Humanids\Tokens\NumberToken;
use Humanids\Tokens\StringToken;

$tokens = [
    new FixedToken('ec2'),
    new AdjectiveToken(),
    new AnimalToken(),
    new NumberToken(1, 999, 3),
    new StringToken(4, 'abcdefghijklmnopqrstuvwxyz'),
];
$generator = new Generator($tokens);
```

You may also create your own `TokenInterface` implementations, for example by extending the `AbstractWordToken` class or by directly implementing the interface`, check the source for any of the generators to get an idea of how they work.

### Licensing

[](#licensing)

This software is released under the MIT license.

Copyright © 2024 biohzrdmx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

### Credits

[](#credits)

**Lead coder:** biohzrdmx &lt;[github.com/biohzrdmx](http://github.com/biohzrdmx)&gt;

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

566d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44b968bb45d47a621ce8e81c422ef4c126316a702156a7faf96df75610cc0d45?d=identicon)[biohzrdmx](/maintainers/biohzrdmx)

---

Top Contributors

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

---

Tags

hrihuman-readable-idphp

### Embed Badge

![Health badge](/badges/biohzrdmx-humanids-php/health.svg)

```
[![Health](https://phpackages.com/badges/biohzrdmx-humanids-php/health.svg)](https://phpackages.com/packages/biohzrdmx-humanids-php)
```

PHPackages © 2026

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