PHPackages                             sasedev/doctrine-behavior - 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. sasedev/doctrine-behavior

ActiveLibrary[Database &amp; ORM](/categories/database)

sasedev/doctrine-behavior
=========================

Doctrine Behavioral Extensions

1.0.3(5y ago)1151MITPHPPHP &gt;=7.2

Since Aug 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sasedev/doctrine-behavior)[ Packagist](https://packagist.org/packages/sasedev/doctrine-behavior)[ Docs](https://github.com/sasedev/doctrine-behavior)[ RSS](/packages/sasedev-doctrine-behavior/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

Sasedev - Doctrine Behavioral Extensions
========================================

[](#sasedev---doctrine-behavioral-extensions)

Doctrine Behavioral Extensions.

What is it?
-----------

[](#what-is-it)

This package contains extensions for Doctrine ORM and MongoDB ODM that offer new functionality or tools to use Doctrine more efficiently. These behaviors can be easily attached to the event system of Doctrine and handle the records being flushed in a behavioral way.

Installation
------------

[](#installation)

```
$ composer require sasedev/doctrine-behavior
```

Composer will install the bundle to your project's vendor directory.

Extensions
----------

[](#extensions)

### ORM &amp; MongoDB ODM

[](#orm--mongodb-odm)

- \[**Blameable**\] - updates string or reference fields on create, update and even property change with a string or object (e.g. user).
- \[**Loggable**\] - helps tracking changes and history of objects, also supports version management.
- \[**Sluggable**\] - urlizes your specified fields into single unique slug
- \[**Timestampable**\] - updates date fields on create, update and even property change.
- \[**Translatable**\] - gives you a very handy solution for translating records into different languages. Easy to setup, easier to use.
- \[**Tree**\]- automates the tree handling process and adds some tree-specific functions on repository. (**closure**, **nested set** or **materialized path**) *(MongoDB ODM only supports materialized path)*

### ORM Only

[](#orm-only)

- \[**IpTraceable**\] - inherited from Timestampable, sets IP address instead of timestamp
- \[**SoftDeleteable**\] - allows to implicitly remove records
- \[**Sortable**\] - makes any document or entity sortable
- \[**Uploadable**\] - provides file upload handling in entity fields

### MongoDB ODM Only

[](#mongodb-odm-only)

- \[**References**\] - supports linking Entities in Documents and vice versa
- \[**ReferenceIntegrity**\] - constrains ODM MongoDB Document references

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Feel free to report any issues. If you have an idea to make it better go ahead and modify and submit pull requests.

### Original

[](#original)

The orginal source is from Gediminas ()

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2084d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6805fc8b10c4f278d79ee357b979c93373c65dbabed205527fab26b6e13c99f7?d=identicon)[sasedev](/maintainers/sasedev)

---

Tags

phpsymfonydoctrinesasedevDoctrine2 behavioral extensions

### Embed Badge

![Health badge](/badges/sasedev-doctrine-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/sasedev-doctrine-behavior/health.svg)](https://phpackages.com/packages/sasedev-doctrine-behavior)
```

###  Alternatives

[kucharovic/money-bundle

This bundle provides integration for Money library in your Symfony project.

2253.7k](/packages/kucharovic-money-bundle)[andanteproject/soft-deletable-bundle

A Symfony Bundle to handle soft deletable with Doctrine Entities

1028.3k](/packages/andanteproject-soft-deletable-bundle)[fourlabs/qbjs-parser

Parse JSON coming from jQuery QueryBuilder, into database queries.

2535.3k2](/packages/fourlabs-qbjs-parser)[event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes DataMapper, SimpleDto/LiteDto, DataAccessor/Mutator/Filter and helper classes (MathHelper, EnvHelper, etc.). Works with Laravel, Symfony/Doctrine or standalone PHP.

1421.5k](/packages/event4u-data-helpers)[fourlabs/qbjs-parser-bundle

This bundle is a Symfony wrapper for fourlabs/qbjs-parser.

1514.7k1](/packages/fourlabs-qbjs-parser-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
