talira

DoctrineExtensions

Behavioural extensions for Doctrine ORM and MongoDB ODM

open sourceMITfree

DoctrineExtensions (gedmo/doctrine-extensions) adds behaviours to Doctrine ORM 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.

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

Alternatives

The same job

These do what DoctrineExtensions does.

  1. StofDoctrineExtensionsBundle Doctrine behaviours (sluggable, timestampable, tree, translatable...) in Symfony

Compare DoctrineExtensions with the top 3