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

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

tacman/doctrine-behaviors
=========================

Doctrine Behavior Traits, fork of knplabs/doctrine-behaviors

2.6.2(3y ago)018811MITPHPPHP &gt;=8.0

Since Jun 17Pushed 6mo agoCompare

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

READMEChangelogDependencies (28)Versions (53)Used By (1)

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

[](#doctrine-behaviors)

[![Downloads](https://camo.githubusercontent.com/772ed890e025833d9c7182f07014cd461e5354f7105350c6a1d9e4f05296c36e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6e706c6162732f646f637472696e652d6265686176696f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knplabs/doctrine-behaviors)

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

This is a fork of js..., which itself is a fork of knplabs/doctrine-behaviors

The purpose of this fork is to be able to install with the latest versions of dependencies and PHP

```
composer req tacman/doctrine-behaviors
```

composer config repositories.behaviors '{"type": "path", "url": "/home/tac/g/tacman/DoctrineBehaviors"}' composer config repositories.behaviors '{"type": "vcs", "url": ":tacman/DoctrineBehaviors.git"}' composer req knplabs/doctrine-behaviors:dev-sf7.0

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

```
