定制 sasedev/doctrine-behavior 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sasedev/doctrine-behavior

Composer 安装命令:

composer require sasedev/doctrine-behavior

包简介

Doctrine Behavioral Extensions

README 文档

README

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)

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固