mdeboer / doctrine-behaviour
Library of different entity behaviours (timestampable etc.)
Installs: 4 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- ext-intl: *
- doctrine/orm: ^2.11
- symfony/clock: ^6.4|^7.0
Requires (Dev)
- ext-pdo_sqlite: *
- friendsofphp/php-cs-fixer: ^3.69
- phpunit/phpunit: ^10.1|^11.0
- squizlabs/php_codesniffer: ^3.11
- symfony/cache: ^5.4|^6.0|^7.0
README
Library for different Doctrine entity behaviours (timestampable, expirable etc.)
Requirements
- PHP 8.1+
- Doctrine ORM 2
- intl extension
Installation
$ composer require mdeboer/doctrine-behaviour
Running tests
$ vendor/bin/phpunit
Behaviours
- Timestampable - For automatically timestamping entities (created at, updated at)
- SoftDeletable - For soft-deleting entities
- Expirable - For entities that can have an expiration date
- Translatable - For (partially) translatable entities
License
MIT
Changelog
See CHANGELOG