Download the PHP package tourze/doctrine-uuid-bundle without Composer
On this page you can find all versions of the php package tourze/doctrine-uuid-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-uuid-bundle
Doctrine UUID Bundle
A Symfony bundle for automatic UUID (v1/v4) assignment in Doctrine entities using PHP 8 attributes.
Features
- Automatic UUID v1 and v4 assignment for entity properties
- Zero configuration, works out of the box
- Attribute-driven and easy to use
- Seamless integration with Doctrine event system
- Built-in logging for debugging
- Extensible: custom UUID generation strategies supported
- Nullable UUID fields supported
- Automatic database schema updates
- Compatible with Symfony 6.4+ and Doctrine 2.13+
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
Installation
Quick Start
Add the UuidV1Column
or UuidV4Column
attribute to your entity properties:
UUIDs will be automatically generated when the entity is persisted.
Advanced Usage
You may extend the Attribute or event listener to implement custom UUID generation logic.
Common Issues
- UUID not being generated: Ensure your entity uses the correct attributes and the bundle is registered in
config/bundles.php
. - Database schema issues: Run
php bin/console doctrine:schema:update --force
to update your database schema. - Performance considerations: UUID v1 is time-based and may be more suitable for database indexing than UUID v4.
Documentation
- API Docs
- Most configuration is automatic. For advanced extension, you may customize the event subscriber.
Contributing
- Feel free to submit Issues and PRs
- Follow PSR code style
- Please ensure tests pass before submitting PRs
- Fork the repo, create a branch, push and submit a PR
License
- License: MIT
- Author: Tourze
Changelog
See CHANGELOG
Workflow Diagram
See Mermaid.md
for a visual workflow.
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of doctrine-uuid-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
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/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/property-access Version ^6.4
symfony/uid 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
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/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/property-access Version ^6.4
symfony/uid 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
The package tourze/doctrine-uuid-bundle contains the following files
Loading the files please wait ....