# DoctrineExtensions

> Behavioural extensions for Doctrine ORM and MongoDB ODM

Source: https://talira.ai/catalog/doctrineextensions-b2e9xf11
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Doctrine Extensions](https://talira.ai/orgs/doctrine-extensions-org.md)

DoctrineExtensions (gedmo/doctrine-extensions) adds behaviours to [Doctrine ORM](https://talira.ai/catalog/doctrine-orm-vn7a6r26.md) and Doctrine MongoDB ODM that hook into Doctrine's event system and act on records as they're flushed. They include blameable, loggable (change history and versions), sluggable, timestampable, translatable and tree (closure table, nested set or materialized path) for both, plus soft deletes, sortable, IP traceable and uploadable fields for the ORM, and references for the ODM. Each is configured with attributes, XML or annotations, and there are guides for Symfony, Laravel and Laminas.

## Links

- GitHub: https://github.com/doctrine-extensions/DoctrineExtensions

## Problems it solves

- add created_at and updated_at timestamps to my Doctrine entities automatically
- generate unique slugs for Doctrine entities from their titles
- store a category tree with nested sets in Doctrine ORM

## Features

- blameable, timestampable and IP traceable fields
- loggable change history and versions
- sluggable fields
- translatable records
- trees as closure table, nested set or materialized path
- soft deletes, sortable entities and uploadable fields (ORM)
- attribute, XML and annotation mapping

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.54, adoption 0.72, momentum 0.41, community 1.00, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 13 commits in the last 90 days
- latest release v3.22.2 2 months ago
- 4.1k GitHub stars
- 511 contributors
- accepts sponsorship (Github, Github, Github)
- has a company behind it

## Related

- Works with [Doctrine ORM](https://talira.ai/catalog/doctrine-orm-vn7a6r26.md)

## Alternatives

- [StofDoctrineExtensionsBundle](https://talira.ai/catalog/stofdoctrineextensionsbundle-zrp0aygp.md): Doctrine behaviours (sluggable, timestampable, tree, translatable...) in Symfony

## Sources

[^1]: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/composer.json (checked 29 Nov 2026)
