Fork me on GitHub
Donate

Articles on extensions

Install Gedmo Doctrine2 extensions in Symfony2

Configure full featured Doctrine2 extensions for your symfony2 project. This post will show you - how to create a simple configuration file to manage extensions with ability to use all features it provides. Interested? then bear with me! and don't be afraid, we're not diving into security component :)

Mapping extension for Doctrine2

Mapping extension makes it easy to map additional metadata for event listeners. It supports Yaml, Xml and Annotation drivers which will be chosen depending on currently used mapping driver for your domain objects. Mapping extension also provides abstraction layer of EventArgs to make it possible to use single listener for different object managers like ODM and ORM.

Features:

  • Mapping drivers for annotation and yaml
  • Conventional extension points for metadata extraction and object manager abstraction

Annotation reference

Bellow you will find all annotation descriptions used in these extensions. There will be introduction on usage with examples. For more detailed usage on extensions, refer to their specific documentation.

Sortable behavior extension for Doctrine2

Sortable behavior will maintain a position field for ordering entities.

Features:

  • Automatic handling of position index
  • Group entity ordering by one or more fields
  • Can be nested with other behaviors
  • Annotation, Yaml and Xml mapping support for extensions

Loggable behavioral extension for Doctrine2

Loggable behavior tracks your record changes and is able to manage versions.

Features:

  • Automatic storage of log entries in database
  • ORM and ODM support using same listener
  • Can be nested with other behaviors
  • Objects can be reverted to previous versions
  • Annotation, Yaml and Xml mapping support for extensions

Timestampable behavior extension for Doctrine 2

Timestampable behavior will automate the update of date fields on your Entities or Documents. It works through annotations and can update fields on creation, update or even on specific property value change.

Features:

  • Automatic predifined date field update on creation, update and even on record property changes
  • ORM and ODM support using same listener
  • Specific annotations for properties, and no interface required
  • Can react to specific property or relation changes to specific value
  • Can be nested with other behaviors
  • Annotation, Yaml and Xml mapping support for extensions

Tree - Nestedset behavior extension for Doctrine 2

Tree nested behavior will implement the standard Nested-Set behavior on your Entity. Tree supports different strategies and currently the alternative to nested-set can be closure-table tree. Also this behavior can be nested with other extensions to translate or generated slugs of your tree nodes.

Features:

  • Closure tree strategy, may be faster in some cases where ordering does not matter
  • Support for multiple roots in nested-set
  • No need for other managers, implementation is through event listener
  • Synchronization of left, right values is automatic
  • Can support concurrent flush with many objects being persisted and updated
  • Can be nested with other extensions
  • Annotation, Yaml and Xml mapping support for extensions

Smarty 3 extension for Zend Framework

Smarty3 extension is easy to integrate and with full compatibility of view and layout templates which supports all standard features like modules and view rendering in ajax, json, xml. All helpers with Smarty 3 are working nicely without any intervention.

Features:

  • Layout and view rendering by standard rules
  • Static template path for each module
  • All helper support including ajax, json, xml contexts

Sluggable behavior extension for Doctrine 2

Sluggable behavior will build the slug of predefined fields on a given field which should store the slug

Features:

  • Automatic predifined field transformation into slug
  • ORM and ODM support using same listener
  • Slugs can be unique and styled
  • Can be nested with other behaviors
  • Annotation, Yaml and Xml mapping support for extensions
  • Multiple slugs, diferent slugs can link to same fields
  • Built-in slug handlers, for tree path based slugs or linked by relation

Translatable behavior extension for Doctrine 2

Translatable behavior offers a very handy solution for translating specific record fields in diferent languages. Further more, it loads the translations automatically for a locale currently used, which can be set to Translatable Listener on it`s initialization or later for other cases through the Entity itself

Features:

  • Automatic storage of translations in database
  • ORM and ODM support using same listener
  • Automatic translation of Entity or Document fields then loaded
  • ORM query can use hint to translate all records without issuing additional queries
  • Can be nested with other behaviors
  • Annotation, Yaml and Xml mapping support for extensions

Build php-5.3.0 - php-5.3.4-dev on Ubuntu server

This article contains a PHP build script and a quick tutorial on how to compile and setup php-5.3.x version into your server

Steps:

  • Downloading sources
  • Making a configure script
  • Building and deploying

Doctrine 2 on Zend framework

This article describes how to connect Doctrine2 with Zend Framework.

Main implementation stuff:

  • Bootstrap Doctrine allowing multi-driver support for meta data
  • Configure namespaces and loaders for CLI support
  • Extensive and simple implementation for any usage