PHPackages                             cline/mint - 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. cline/mint

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

cline/mint
==========

A comprehensive unique identifier generation library supporting UUID, ULID, Snowflake, NanoID, Sqids, KSUID, CUID2, TypeID, XID, ObjectID, PushID, and Timeflake

2.0.3(1mo ago)0741MITPHPPHP ^8.5.0CI passing

Since Jan 31Pushed 1mo agoCompare

[ Source](https://github.com/faustbrian/mint)[ Packagist](https://packagist.org/packages/cline/mint)[ RSS](/packages/cline-mint/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (8)Used By (1)

[![GitHub Workflow Status](https://github.com/faustbrian/mint/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/mint/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/e1fd6b7d1d567fde88f3814945d81856ff53b8f8abef2fb0bde4564d74154eda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f6d696e742e737667)](https://packagist.org/packages/cline/mint)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/5ed27e715dee6fa599179ed0a1c958359fedd534ac70142cf18d974480a0bc01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f6d696e742e737667)](https://packagist.org/packages/cline/mint)

---

Mint is a unified identifier generation library for Laravel that provides a fluent API for generating, parsing, and validating various types of unique identifiers. Whether you need time-ordered UUIDs for database performance, compact NanoIDs for URLs, or type-prefixed TypeIDs for self-documenting APIs, Mint has you covered.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/) and Laravel 12+**

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

[](#installation)

```
composer require cline/mint
```

Documentation
-------------

[](#documentation)

- **[Getting Started](https://docs.cline.sh/mint/getting-started)** - Installation and basic concepts
- **[UUID](https://docs.cline.sh/mint/uuid)** - Universally Unique Identifiers (RFC 4122/9562)
- **[ULID](https://docs.cline.sh/mint/ulid)** - Lexicographically Sortable Identifiers
- **[Snowflake](https://docs.cline.sh/mint/snowflake)** - Twitter-style 64-bit time-ordered identifiers
- **[NanoID](https://docs.cline.sh/mint/nanoid)** - Compact, URL-safe random identifiers
- **[Sqid](https://docs.cline.sh/mint/sqid)** - Encode/decode integers to short strings
- **[Hashid](https://docs.cline.sh/mint/hashid)** - Encode/decode integers with salt
- **[TypeID](https://docs.cline.sh/mint/typeid)** - Type-prefixed UUIDv7 identifiers
- **[KSUID](https://docs.cline.sh/mint/ksuid)** - K-Sortable Unique Identifiers
- **[Other Identifiers](https://docs.cline.sh/mint/other-identifiers)** - CUID2, ObjectID, and more

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.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/mint/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

7

Last Release

52d ago

Major Versions

1.x-dev → 2.0.02026-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (11 commits)")

---

Tags

phphashidsuuididentifierulidunique-idsqidscuidsnowflakeksuidnanoidid-generatortypeidObjectIdxidpushidtimeflake

### Embed Badge

![Health badge](/badges/cline-mint/health.svg)

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

###  Alternatives

[identifier/identifier

Common Interfaces and Factories for Identifiers

3226.2k1](/packages/identifier-identifier)[ramsey/identifier

A PHP library for generating and working with identifiers, including UUIDs, ULIDs, and Snowflakes

603.0k1](/packages/ramsey-identifier)[riipandi/laravel-optikey

Use UUID, Ulid, or nanoid as optional or primary key in Laravel.

429.1k](/packages/riipandi-laravel-optikey)[sudiptpa/guid

A minimal GUID generator package for PHP.

14135.8k1](/packages/sudiptpa-guid)[infocyph/uid

UUID (RFC 4122 + Unofficial/Draft), ULID, Snowflake ID, Sonyflake ID, TBSL (library exclusive) generator!

105.1k](/packages/infocyph-uid)

PHPackages © 2026

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