Download the PHP package clear01/doctrine-behaviors without Composer
On this page you can find all versions of the php package clear01/doctrine-behaviors. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download clear01/doctrine-behaviors
More information about clear01/doctrine-behaviors
Files in clear01/doctrine-behaviors
Download clear01/doctrine-behaviors
More information about clear01/doctrine-behaviors
Files in clear01/doctrine-behaviors
Vendor clear01
Package doctrine-behaviors
Short Description Integration of KnpLabs/DoctrineBehaviors to Nette\DI
License MIT
Package doctrine-behaviors
Short Description Integration of KnpLabs/DoctrineBehaviors to Nette\DI
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-behaviors
Doctrine Behaviors
Port of KnpLabs/DoctrineBehaviors to Nette DI
Supported behaviors:
- Blameable
- Geocodable
- Loggable
- Sluggable
- SoftDeletable
- Translatable
- Timestampable
- Tree
For implementation to entities, check tests.
Install
Via Composer:
Register extensions you need in config.neon
:
Usage
Translatable
Setup your translator locale callback in config.neon
:
Place trait to your entity:
And its translation entity:
For deeper knowledge see test for:
Timestampable
Place trait to your entity to ad $createdAt
and $updatedAt
properties:
Testing
Contributing
Rules are simple:
- new feature needs tests
- all tests must pass
- 1 feature per PR
We would be happy to merge your feature then!
All versions of doctrine-behaviors with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
kdyby/events Version ~3.0
knplabs/doctrine-behaviors Version 1.4.0
tracy/tracy Version ~2.4
kdyby/events Version ~3.0
knplabs/doctrine-behaviors Version 1.4.0
tracy/tracy Version ~2.4
The package clear01/doctrine-behaviors contains the following files
Loading the files please wait ....