2017 © Pedro Peláez
 

library objectid

Unique Id generator inspired by mongodb object id

image

tawfekov/objectid

Unique Id generator inspired by mongodb object id

  • Tuesday, October 7, 2014
  • by tawfekov
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

========, (*1)

ObjectId

Unique Id generator inspired by mongodb object id, (*2)

Overview

ObjectId <objectid> is a 12-byte String type, constructed using:, (*3)

  • a 4-byte value representing the seconds since the Unix epoch or some folks call it unix timestamp
  • a 3-byte machine identifier hostname
  • a 2-byte process id
  • a 3-byte counter, starting with a random value.

In RDMS, records stored in a table require a unique id field that acts as a primary key. Because ObjectIds are small, most likely unique, and fast to generate you may want to use it in your next project, (*4)

The Versions

07/10 2014

dev-master

9999999-dev

Unique Id generator inspired by mongodb object id

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-mbstring *