PHPackages                             vasyaxy/doctrine-behaviors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. vasyaxy/doctrine-behaviors

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

vasyaxy/doctrine-behaviors
==========================

Doctrine Behavior Traits for symfony 7+

v1.3(2y ago)11.1k↓100%1MITPHPPHP &gt;=8.2

Since Dec 10Pushed 2y agoCompare

[ Source](https://github.com/VasyaXY/DoctrineBehaviors)[ Packagist](https://packagist.org/packages/vasyaxy/doctrine-behaviors)[ Docs](http://x8x9.net)[ RSS](/packages/vasyaxy-doctrine-behaviors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (28)Versions (5)Used By (0)

Doctrine Behaviors
==================

[](#doctrine-behaviors)

This is fork for symfony 7 from knplabs/doctrine-behaviors

This PHP library is a collection of traits and interfaces that add behaviors to Doctrine entities and repositories.

It currently handles:

- [Blameable](/docs/blameable.md)
- [Loggable](/docs/loggable.md)
- [Sluggable](/docs/sluggable.md)
- [SoftDeletable](/docs/soft-deletable.md)
- [Uuidable](/docs/uuidable.md)
- [Timestampable](/docs/timestampable.md)
- [Translatable](/docs/translatable.md)
- [Tree](/docs/tree.md)

Install
-------

[](#install)

```
composer require vasyaxy/doctrine-behaviors
```

Usage
-----

[](#usage)

All you have to do is to define a Doctrine entity:

- implemented interface
- add a trait

For some behaviors like tree, you can use repository traits:

```
