Download the PHP package subiabre/doctrine-snowflakes without Composer
On this page you can find all versions of the php package subiabre/doctrine-snowflakes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download subiabre/doctrine-snowflakes
More information about subiabre/doctrine-snowflakes
Files in subiabre/doctrine-snowflakes
Download subiabre/doctrine-snowflakes
More information about subiabre/doctrine-snowflakes
Files in subiabre/doctrine-snowflakes
Vendor subiabre
Package doctrine-snowflakes
Short Description Custom id generator implementing snowflake algorithm
License MIT
Package doctrine-snowflakes
Short Description Custom id generator implementing snowflake algorithm
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-snowflakes
SnowflakeGenerator
ID Generator for Doctrine implementing the Snowflake algorithm.
Install
Usage
In your entity classes:
Take in consideration that PHP does not have a proper bigint
data type. Due to this limitation, doctrine-snowflake IDs should be used as string
.
Testing
This package includes unit tests with the PHPUnit library. Run the tests with:
The default test cases test against concurrency and uniqueness in 10 batches of 300 IDs each batch, alternatively you can supply any batch size with:
All versions of doctrine-snowflakes with dependencies
PHP Build Version
Package Version
The package subiabre/doctrine-snowflakes contains the following files
Loading the files please wait ....