PHPackages                             toovalu-github/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. toovalu-github/doctrine-behaviors

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

toovalu-github/doctrine-behaviors
=================================

Doctrine Behavior Traits

3.1.0(1mo ago)02.8k↓33.7%[1 PRs](https://github.com/toovalu/DoctrineBehaviors/pulls)1MITPHPPHP &gt;=8.4CI passing

Since Jul 9Pushed 4mo agoCompare

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

READMEChangelog (9)Dependencies (52)Versions (17)Used By (1)

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

[](#doctrine-behaviors)

It's a fork from

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)
- [Sluggable](/docs/sluggable.md)
- [SoftDeletable](/docs/soft-deletable.md)
- [Uuidable](/docs/uuidable.md)
- [Timestampable](/docs/timestampable.md)
- [Translatable](/docs/translatable.md)

Install
-------

[](#install)

```
composer require toovalu/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:

```
