2017 © Pedro Peláez
 

library simpleflake-php

image

michaelcontento/simpleflake-php

  • Monday, December 7, 2015
  • by MichaelContento
  • Repository
  • 0 Watchers
  • 5 Stars
  • 172 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 12 % Grown

The README.md

simpleflake-PHP

Travis Status: Build Status, (*1)

Distributed ID generation in PHP for the lazy. Based on the awesome python implementation from SawdustSoftware., (*2)

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

Usage

<?php

require "simpleflake.php";

$newId = \simpleflake\generate();
echo "ID: $newId\n";

$parts = \simpleflake\parse($newId);
echo "Timestamp:  " . $parts["timestamp"] . "\n";
echo "RandomBits: " . $parts["randomBits"] . "\n";

The Versions

07/12 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Development Requires

uuid simpleflake