Download the PHP package ufo-tech/doctrine-behaviors without Composer
On this page you can find all versions of the php package ufo-tech/doctrine-behaviors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ufo-tech/doctrine-behaviors
More information about ufo-tech/doctrine-behaviors
Files in ufo-tech/doctrine-behaviors
Package doctrine-behaviors
Short Description Doctrine Behavior Traits for symfony 7+ and Doctrine DBAL 4+ and Doctrine ORM 3+
License MIT
Homepage https://github.com/UFO-Tech/DoctrineBehaviors
Informations about the package doctrine-behaviors
Doctrine Behaviors
Fork of a fork of KnpLabs/DoctrineBehaviors to ensure compatibility with Symfony 7+ and Doctrine DBAL 4+, addressing limitations in the original package, which was restricted to Symfony 6.3 and older versions of Doctrine.
This fork is maintained for use in modern Symfony projects and provides continued support for features like Timestampable
, Translatable
, Blameable
, SoftDeletable
, Tree
, and Uuid
. The original bundle does not work beyond Symfony 6.3, which makes it unsuitable for up-to-date projects.
Features
This bundle includes the following Doctrine behaviors:
- Timestampable: Automatically handle
createdAt
andupdatedAt
fields. - Translatable: Add support for translations in your entities.
- Blameable: Automatically set
createdBy
andupdatedBy
fields. - SoftDeletable: Add support for soft deletes.
- Tree: Enable tree structures for your entities.
- Uuid: Support UUIDs as primary keys or identifiers.
Requirements
- PHP: >=8.2
- Symfony: ^7.0 | ^8.0
- Doctrine DBAL: ^3.2|^4.2
- Doctrine ORM: ^3.3
- DoctrineBundle: ^2.6
Installation
Install via Composer:
Configuration
Enable the bundle in your Symfony project by adding it to bundles.php:
Usage
All versions of doctrine-behaviors with dependencies
doctrine/common Version ^3.3
doctrine/persistence Version ^2.5|^3.0
doctrine/dbal Version ^3.2|^4.2
doctrine/orm Version ^3.3
doctrine/doctrine-bundle Version ^2.6
symfony/cache Version ^7.0|^8.0
symfony/dependency-injection Version ^7.0|^8.0
symfony/http-kernel Version ^7.0|^8.0
symfony/security-core Version ^7.0|^8.0
symfony/framework-bundle Version ^7.0|^8.0
symfony/string Version ^7.0|^8.0
symfony/translation-contracts Version ^2.4|^3.0|^4.0|^5.0
nette/utils Version ^4.0
ramsey/uuid Version ^4.2