PHPackages                             ulrack/identifier - 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. ulrack/identifier

Abandoned → [grizz-it/identifier](/?search=grizz-it%2Fidentifier)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ulrack/identifier
=================

A set of identifier generators.

1.0.1(6y ago)02MITPHPPHP ^7.2

Since Aug 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ulrack/identifier)[ Packagist](https://packagist.org/packages/ulrack/identifier)[ RSS](/packages/ulrack-identifier/feed)WikiDiscussions master Synced 4d ago

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

DEPRECATION NOTICE: this package has been moved and improved at [grizz-it/identifier](https://github.com/grizz-it/identifier)
=============================================================================================================================

[](#deprecation-notice-this-package-has-been-moved-and-improved-at-grizz-itidentifier)

[![Build Status](https://camo.githubusercontent.com/b6d07054b638c9ada30016c6fbea9bbaa722d855b6347a62ab709b0cdb015eac/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f6964656e7469666965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/identifier)

Ulrack Identifier
=================

[](#ulrack-identifier)

This package contains a few algorithms to generate unique identifiers.

Installation
------------

[](#installation)

To install the package run the following command:

```
composer require ulrack/identifier

```

Usage
-----

[](#usage)

All identifier generators implement `Ulrack\Identifier\Common\IdGeneratorInterface`.

### [UlidGenerator](src/Component/UlidGenerator.php)

[](#ulidgenerator)

The ULID generator generates identifiers based on the ULID algorithms.

### [UlidPidGenerator](src/Component/UlidPidGenerator.php)

[](#ulidpidgenerator)

The ULID PID generator expands upon the UlidGenerator to create a more unique identifier. It adds 4 additional characters to the ULID based on the PID assigned to the executing PHP process. This excludes (the extremely unlikely) possibility of a matching ID being generated between in 2 separate PHP processes which simultaneously generate an ID.

### [RandomByteIdGenerator](src/Component/RandomByteIdGenerator.php)

[](#randombyteidgenerator)

The random bye ID generator generates an identifier based on a set amount of random bytes which get converted to their hexadecimal counterpart. This generator can be instantiated with the number of bytes that should be used. The number of bytes times two will be the resulting identifier length.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

MIT License
-----------

[](#mit-license)

Copyright (c) 2019 GrizzIT

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.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8682881?v=4)[GrizzIT](/maintainers/GrizzIT)[@grizzit](https://github.com/grizzit)

---

Top Contributors

[![mfrankruijter](https://avatars.githubusercontent.com/u/8653925?v=4)](https://github.com/mfrankruijter "mfrankruijter (3 commits)")

---

Tags

identifierphpulrackidentifier

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ulrack-identifier/health.svg)

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

###  Alternatives

[ramsey/uuid

A PHP library for generating and working with universally unique identifiers (UUIDs).

12.6k700.2M3.3k](/packages/ramsey-uuid)[pascaldevink/shortuuid

PHP 7.4+ library that generates concise, unambiguous, URL-safe UUIDs

5951.8M15](/packages/pascaldevink-shortuuid)[keiko/uuid-shortener

A simple shortener library for RFC 4122 compatible UUIDs. Change your 36 chars long UUID into it's shorter equivalent.

150215.4k2](/packages/keiko-uuid-shortener)[oittaa/uuid

A small PHP class for generating RFC 9562 universally unique identifiers (UUID) from version 3 to version 8.

50302.7k5](/packages/oittaa-uuid)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[sudiptpa/guid

A minimal GUID generator package for PHP.

14135.8k1](/packages/sudiptpa-guid)

PHPackages © 2026

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