library cuid
Collision-resistant ids optimized for horizontal scaling and performance.
shoperti/cuid
Collision-resistant ids optimized for horizontal scaling and performance.
- Thursday, November 26, 2015
- by joecohens
- Repository
- 3 Watchers
- 4 Stars
- 1,504 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 25 % Grown
Shoperti Cuid
, (*1)
This is a port from https://github.com/ericelliott/cuid to PHP. Please refer to the original repo for more information., (*2)
Installation
Begin by installing this package through Composer. Edit your project's composer.json file to require shoperti/cuid., (*3)
"require": {
"shoperti/cuid": "~1.0"
}
Next, update Composer from the Terminal:, (*4)
composer update
Examples
// Create a new cuid
$cuid = new Shoperti\Cuid\Cuid::cuid();
// Create a new cuid slug
$cuid = new Shoperti\Cuid\Cuid::slug();
dev-master
9999999-dev
Collision-resistant ids optimized for horizontal scaling and performance.
Sources
Download
MIT
The Requires
The Development Requires
php
cuid
shoperti
v1.0.0
1.0.0.0
Collision-resistant ids optimized for horizontal scaling and performance.
Sources
Download
MIT
The Requires
The Development Requires
php
cuid
shoperti