Git Product home page Git Product logo

doctrine-behavior's Introduction

Sasedev - Doctrine Behavioral Extensions

Doctrine Behavioral Extensions.

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

$ composer require sasedev/doctrine-behavior

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

Extensions

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

  • [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

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

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

The orginal source is from Gediminas (https://github.com/Atlantic18/DoctrineExtensions)

doctrine-behavior's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.