Download the PHP package sschiau/particle without Composer
On this page you can find all versions of the php package sschiau/particle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package particle
Particle
Language: PHP
64bits int Time Based ID Generator
Uncoordinated
For high availability within and across data centers, machines generating ids should not have to coordinate with each other.
Solution
- PHP (tested on v7.1.8)
- Particle Id (64 bits) is composed of:
- time - 42 bits (millisecond precision w/ a custom epoch)
- configured machine id - 10 bits - up to 1024 machines
- sequence number - 12 bits - up to 4096 random numbers
System Clock Dependency
You should use NTP to keep your system clock accurate.
How to use it
Generate Particle ID
Change const EPOCH in particle class to today epoch time w/ millisecond (13 digits)
Time from Particle ID (w/ millisecond precision)
All versions of particle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.7
The package sschiau/particle contains the following files
Loading the files please wait ....