PHPackages                             yu-ichiro/ulid - 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. yu-ichiro/ulid

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

yu-ichiro/ulid
==============

A simple and robust implementation of ULID in PHP

v1.0.0(4y ago)51.5k↓25%Apache-2.0PHPPHP ^8.0 || ^7.3

Since Dec 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yu-ichiro/php-ulid)[ Packagist](https://packagist.org/packages/yu-ichiro/ulid)[ RSS](/packages/yu-ichiro-ulid/feed)WikiDiscussions main Synced 1mo ago

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

yu-ichiro/ulid
==============

[](#yu-ichiroulid)

[![codecov](https://camo.githubusercontent.com/97f4f21a5585bdeb682ff87baeb39160b5da0a0039a940db15013ed5b9dadc0b/68747470733a2f2f636f6465636f762e696f2f67682f79752d69636869726f2f7068702d756c69642f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d49503657304f4b455657)](https://codecov.io/gh/yu-ichiro/php-ulid)[![CI Status](https://github.com/yu-ichiro/php-ulid/actions/workflows/ci.yml/badge.svg)](https://github.com/yu-ichiro/php-ulid/actions/workflows/ci.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/87a1054858b4e333d4396f2a1c6ed91ed052a8e3706d0c6a529d33fa476c5b64/687474703a2f2f706f7365722e707567782e6f72672f79752d69636869726f2f756c69642f76)](https://packagist.org/packages/yu-ichiro/ulid)[![Total Downloads](https://camo.githubusercontent.com/672e84b5148ced3f5ae355392085afe5e8e6a322ab4e1c91896658c968d8cfbd/687474703a2f2f706f7365722e707567782e6f72672f79752d69636869726f2f756c69642f646f776e6c6f616473)](https://packagist.org/packages/yu-ichiro/ulid)[![Latest Unstable Version](https://camo.githubusercontent.com/dab9fcfbf2d989d02654a3d11515318c24aa28e0bc1675385e67171742e2434d/687474703a2f2f706f7365722e707567782e6f72672f79752d69636869726f2f756c69642f762f756e737461626c65)](https://packagist.org/packages/yu-ichiro/ulid)[![License](https://camo.githubusercontent.com/04de144dd8c3961e17dd60749402ac802bb5d80bb8520252ac2c73a5ccbd930a/687474703a2f2f706f7365722e707567782e6f72672f79752d69636869726f2f756c69642f6c6963656e7365)](https://packagist.org/packages/yu-ichiro/ulid)[![PHP Version Require](https://camo.githubusercontent.com/0235b1a318d06c32f98f5e4d720f0909c59c11c7cb62c5fa9aec0cc35c718728/687474703a2f2f706f7365722e707567782e6f72672f79752d69636869726f2f756c69642f726571756972652f706870)](https://packagist.org/packages/yu-ichiro/ulid)

A simple and robust implementation of [ULID](https://github.com/ulid/spec) in PHP with no dependency.

Works on its own, but utilizes Ramsey\\Uuid\\Uuid if present.

Installation
============

[](#installation)

```
$ composer require yu-ichiro/ulid

```

Usage
=====

[](#usage)

```
use Ulid\Ulid

new Ulid();  // ULID {01FQ75VPEBGY1JZSRD03EMM5QM}
new Ulid('01FQ75VPEBGY1JZSRD03EMM5QM');  // ULID {01FQ75VPEBGY1JZSRD03EMM5QM}
new Ulid('017dce5d-d9cb-8783-2fe7-0d00dd4a16f4');  // ULID {01FQ75VPEBGY1JZSRD03EMM5QM}

(string) new Ulid(); // "01FQ75VPEBGY1JZSRD03EMM5QM"
(new Ulid())->jsonSerialize(); // "01FQ75VPEBGY1JZSRD03EMM5QM"
(new Ulid())->toUuid(); // "017dce5d-d9cb-8783-2fe7-0d00dd4a16f4"
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1612d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1b969d2c4b098826211629923cfb079ccb354d585db6b3343e38fe08af0f1c4?d=identicon)[yu-ichiro](/maintainers/yu-ichiro)

---

Top Contributors

[![s3i7h](https://avatars.githubusercontent.com/u/6957492?v=4)](https://github.com/s3i7h "s3i7h (36 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yu-ichiro-ulid/health.svg)

```
[![Health](https://phpackages.com/badges/yu-ichiro-ulid/health.svg)](https://phpackages.com/packages/yu-ichiro-ulid)
```

###  Alternatives

[dholmes/bga-workbench

BoardGameArena Workbench

375.3k](/packages/dholmes-bga-workbench)[limingxinleo/x-phalcon-enum

a phalcon enum component

104.4k1](/packages/limingxinleo-x-phalcon-enum)

PHPackages © 2026

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