Collision-resistant ids optimized for horizontal scaling and performance.

v1.0.0 2015-10-05 20:45 UTC

This package is auto-updated.

Last update: 2024-02-09 12:43:14 UTC


Build Status StyleCI

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


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


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

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