Skip to content
/ Cuid Public

Collision-resistant ids optimized for horizontal scaling and performance in PHP

License

Notifications You must be signed in to change notification settings

Shoperti/Cuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shoperti Cuid

Build Status StyleCI

This is a port from https://github.com/ericelliott/cuid to PHP. Please refer to the original repo for more information.

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

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

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

About

Collision-resistant ids optimized for horizontal scaling and performance in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages