Download the PHP package tourze/doctrine-snowflake-bundle without Composer
On this page you can find all versions of the php package tourze/doctrine-snowflake-bundle. 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 doctrine-snowflake-bundle
Doctrine Snowflake Bundle
A Snowflake ID generator bundle for Symfony, providing distributed unique ID generation for Doctrine entities.
中文
Features
- Based on godruoyi/php-snowflake
- Auto-generate Snowflake IDs for Doctrine entity properties
- Optional Redis sequence resolver to reduce ID duplication under high concurrency
- Custom ID prefix and length limit
- WorkerId auto-generated by hostname, supporting distributed deployment
Installation
Quick Start
Add a Snowflake ID to your entity:
Configuration
Redis Sequence Resolver (optional)
To use Redis for sequence resolution and reduce ID duplication:
Requirements
- PHP 8.1 or newer
- Symfony 6.4 or newer
- Doctrine Bundle 2.13 or newer
License
MIT License
Contributing
Contributions are welcome! Please submit issues or pull requests.
Changelog
See Releases for version history.
All versions of doctrine-snowflake-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
doctrine/common Version ^3.5
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^3.1 || ^4
psr/log Version ^3|^2|^1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/expression-language Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/lock Version ^6.4
symfony/messenger Version ^6.4
symfony/property-access Version ^6.4
symfony/string Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/bundle-dependency Version 0.0.*
tourze/doctrine-entity-checker-bundle Version ~0.0.8
tourze/symfony-snowflake-bundle Version 0.0.*
doctrine/common Version ^3.5
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^3.1 || ^4
psr/log Version ^3|^2|^1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/expression-language Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/lock Version ^6.4
symfony/messenger Version ^6.4
symfony/property-access Version ^6.4
symfony/string Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/bundle-dependency Version 0.0.*
tourze/doctrine-entity-checker-bundle Version ~0.0.8
tourze/symfony-snowflake-bundle Version 0.0.*
The package tourze/doctrine-snowflake-bundle contains the following files
Loading the files please wait ....