2017 © Pedro Peláez
 

library doctrine-extensions

Doctrine2 behavioral extensions

image

fcpauldiaz/doctrine-extensions

Doctrine2 behavioral extensions

  • Monday, September 12, 2016
  • by fcpauldiaz
  • Repository
  • 2 Watchers
  • 0 Stars
  • 247 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 995 Forks
  • 0 Open issues
  • 49 Versions
  • 11 % Grown

The README.md

Doctrine2 behavioral extensions

Version 3.0.0, (*1)

Build Status Total Downloads Latest Stable Version, (*2)

Note: Extensions 3.0.x are compatible with ORM and doctrine common libraries from 2.5.x and requires PHP 5.4 or higher. Extensions 2.4.x are compatible with ORM and doctrine common library versions from 2.2.x to 2.5.x, (*3)

Since the author has stopped working with PHP, looking for maintainers to ensure stability of doctrine extensions., (*4)

Latest updates

2016-01-27, (*5)

  • Nested tree now allows root field as association.
  • Sortable supports more than one sortable field per entity, has BC changes.
  • Uploadable supports more than one file per entity, may have implicit BC change if users have used their custom FilenameGeneratorInterface see #1342.

2015-12-27, (*6)

  • From now on, extensions will require php 5.4 or higher.
  • All trait column names will refer to naming strategy and won't be explicitly set by extensions.
  • Tree repositories are now using traits, for easier extensions.

Extensions and Documentation

This package contains extensions for Doctrine2 that hook into the facilities of Doctrine and offer new functionality or tools to use Doctrine2 more efficiently. This package contains mostly used behaviors which can be easily attached to your event system of Doctrine2 and handle the records being flushed in the behavioral way. List of extensions:, (*7)

  • Tree - this extension automates the tree handling process and adds some tree specific functions on repository. (closure, nestedset or materialized path)
  • Translatable - gives you a very handy solution for translating records into different languages. Easy to setup, easier to use.
  • Sluggable - urlizes your specified fields into single unique slug
  • Timestampable - updates date fields on create, update and even property change.
  • 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.
  • Sortable - makes any document or entity sortable
  • Translator - explicit way to handle translations
  • SoftDeleteable - allows to implicitly remove records
  • Uploadable - provides file upload handling in entity fields
  • References - supports linking Entities in Documents and vice versa
  • ReferenceIntegrity - constrains ODM MongoDB Document references
  • IpTraceable - inherited from Timestampable, sets IP address instead of timestamp

Currently these extensions support Yaml, Annotation and Xml mapping., (*8)

Note: Please note, that xml mapping needs to be in a different namespace, the declared namespace for Doctrine extensions is doctrine-extensions.xsd So root node now looks like this:, (*9)

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-extensions.xsd"
                 xmlns:gedmo="http://Atlantic18.github.io/DoctrineExtensions/schemas/orm/doctrine-extensions.xsd">
...
</doctrine-mapping>

XML mapping xsd schemas are also versioned and can be used by version suffix:, (*10)

  • Latest version - http://Atlantic18.github.io/DoctrineExtensions/schemas/orm/doctrine-extensions.xsd
  • 2.4.x version - http://Atlantic18.github.io/DoctrineExtensions/schemas/orm/doctrine-extensions-2.4.xsd
  • 3.0.x version - http://Atlantic18.github.io/DoctrineExtensions/schemas/orm/doctrine-extensions-3.0.xsd

ODM MongoDB support

List of extensions which support ODM, (*11)

  • Translatable
  • Sluggable
  • Timestampable
  • Blameable
  • Loggable
  • Translator
  • Tree (Materialized Path strategy for now)
  • References
  • ReferenceIntegrity

All these extensions can be nested together and mapped in traditional ways - annotations, xml or yaml, (*12)

Running the tests:

pdo-sqlite extension is necessary. To setup and run tests follow these steps:, (*13)

  • install dev libraries: composer install
  • run: bin/phpunit -c tests
  • optional - run mongodb service if targeting mongo tests

NOTE: if php7 is used with mongodb install extension and dependencies using composer7.json. This is a temporary hack until the better ODM support is available., (*14)

Running the example:

To setup and run example follow these steps:, (*15)

  • go to the root directory of extensions
  • install dev libraries: composer install
  • edit example/em.php and configure your database on top of the file
  • run: ./example/bin/console or php example/bin/console for console commands
  • run: ./example/bin/console orm:schema-tool:create to create schema
  • run: php example/run.php to run example

Contributors:

NOTE: composer7.json is only used to test extensions with ODM mongodb using php7, same for travis., (*16)

Thanks to everyone participating in the development of these great Doctrine2 extensions!, (*17)

And especially ones who create and maintain new extensions:, (*18)

The Versions

12/09 2016

dev-master

9999999-dev http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

12/09 2016

v2.4.23

2.4.23.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/08 2016

v2.4.x-dev

2.4.9999999.9999999-dev http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/08 2016

v2.4.22

2.4.22.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

17/08 2016

v2.4.21

2.4.21.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/07 2016

dev-phpunit

dev-phpunit http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/07 2016

v2.4.20

2.4.20.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

25/07 2016

v2.4.19

2.4.19.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

19/07 2016

v2.4.18

2.4.18.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

15/07 2016

v2.4.17

2.4.17.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

15/07 2016

v2.4.16

2.4.16.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

08/07 2016

v2.4.14

2.4.14.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

08/07 2016

v2.4.15

2.4.15.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

03/07 2016

dev-travis-mongo

dev-travis-mongo http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

07/05 2016

dev-test-1064

dev-test-1064 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

18/02 2016

v2.4.13

2.4.13.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

02/02 2016

dev-trans-inheritance

dev-trans-inheritance http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

28/01 2016

v2.4.12

2.4.12.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

27/01 2016

v2.4.11

2.4.11.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

18/12 2015

v2.4.10

2.4.10.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/11 2015

v2.4.9

2.4.9.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

25/11 2015

v2.4.8

2.4.8.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

28/09 2015

v2.4.7

2.4.7.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

28/08 2015

v2.4.6

2.4.6.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

11/08 2015

v2.4.5

2.4.5.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

30/07 2015

v2.4.4

2.4.4.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

07/07 2015

v2.4.3

2.4.3.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

18/06 2015

v2.4.2

2.4.2.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

01/05 2015

v2.4.1

2.4.1.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

26/03 2015

v2.4.0

2.4.0.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

24/02 2015

v2.3.12

2.3.12.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

28/01 2015

v2.3.11

2.3.11.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

21/01 2015

v2.3.10

2.3.10.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

06/10 2014

dev-wip-v2.4.0

dev-wip-v2.4.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

12/01 2014

v2.3.9

2.3.9.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

09/11 2013

v2.3.8

2.3.8.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

18/08 2013

v2.3.7

2.3.7.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

21/05 2013

v2.3.6

2.3.6.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

21/04 2013

2.2.x-dev

2.2.9999999.9999999-dev http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

05/03 2013

v2.3.5

2.3.5.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

05/02 2013

v2.3.4

2.3.4.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by David Buchmann
by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable blameable uploadable

18/12 2012

v2.3.3

2.3.3.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

14/07 2012

v2.3.2

2.3.2.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

05/07 2012

v2.3.1

2.3.1.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

15/06 2012

v2.2.3

2.2.3.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

01/05 2012

v2.2.2

2.2.2.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

10/03 2012

v2.2.1

2.2.1.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

26/02 2012

v2.3.0

2.3.0.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable

21/01 2012

v2.2.0

2.2.0.0 http://gediminasm.org/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

by Gediminas Morkevicius

extensions doctrine2 translatable gedmo tree behaviors sluggable loggable nestedset sortable timestampable