Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Repository files navigation

simpleflake-PHP

Travis Status: Build Status

Distributed ID generation in PHP for the lazy. Based on the awesome python implementation from SawdustSoftware.

You can read an overview of what this does and why it came into being at the Sawdust Software Blog.

Usage

<?phprequire"simpleflake.php";
$newId = \simpleflake\generate();
echo"ID: $newId\n";
$parts = \simpleflake\parse($newId);
echo"Timestamp: " . $parts["timestamp"] . "\n";
echo"RandomBits: " . $parts["randomBits"] . "\n";

About

Distributed ID generation in *PHP* for the lazy.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages