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

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

zitec/doctrine-behaviors
========================

Doctrine Behavior Traits

1.0.1(3mo ago)02.1k↓34.6%MITPHPPHP &gt;=8.0

Since Sep 2Pushed 3mo agoCompare

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

READMEChangelog (2)Dependencies (28)Versions (4)Used By (0)

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

[](#doctrine-behaviors)

*This repository is a fork of [knplabs/doctrine-behaviors](https://github.com/KnpLabs/DoctrineBehaviors). The aim of this fork is to provide support for PHP 8.4 and later.*

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 zitec/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:

```
