PHPackages                             shoperti/cuid - 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. shoperti/cuid

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

shoperti/cuid
=============

Collision-resistant ids optimized for horizontal scaling and performance.

v1.0.0(10y ago)43.6kMITPHPPHP &gt;=5.4.0

Since Oct 5Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Shoperti/Cuid)[ Packagist](https://packagist.org/packages/shoperti/cuid)[ RSS](/packages/shoperti-cuid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Shoperti Cuid
=============

[](#shoperti-cuid)

[![Build Status](https://camo.githubusercontent.com/2260eea54f6a63a7ca35f0b6675515b1bfe15577b35978aa83cf4d8ce1a2dbd7/68747470733a2f2f7472617669732d63692e6f72672f53686f70657274692f437569642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Shoperti/Cuid)[![StyleCI](https://camo.githubusercontent.com/38b3e0cf0639a27f5467d656690862e3d43f99120bb87836b3188f2efdb847af/68747470733a2f2f7374796c6563692e696f2f7265706f732f34333730393539392f736869656c64)](https://styleci.io/repos/43709599)

This is a port from  to PHP. Please refer to the original repo for more information.

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `shoperti/cuid`.

```
"require": {
  "shoperti/cuid": "~1.0"
}
```

Next, update Composer from the Terminal:

```
composer update

```

### Examples

[](#examples)

```
// Create a new cuid
$cuid = new Shoperti\Cuid\Cuid::cuid();

// Create a new cuid slug
$cuid = new Shoperti\Cuid\Cuid::slug();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

3878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdc9e2de1632032ee831da93db1060f4b3b6aedf1753bdba10740fa39afe7227?d=identicon)[joecohens](/maintainers/joecohens)

---

Top Contributors

[![joecohens](https://avatars.githubusercontent.com/u/1803556?v=4)](https://github.com/joecohens "joecohens (16 commits)")

---

Tags

phpcuidshoperti

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shoperti-cuid/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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