定制 cycle/entity-behavior 二次开发

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

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

cycle/entity-behavior

最新稳定版本:1.7.1

Composer 安装命令:

composer require cycle/entity-behavior

包简介

Provides a collection of attributes that add behaviors to Cycle ORM entities

README 文档

README

Latest Stable Version Build Status Scrutinizer Code Quality Codecov

The package provides a collection of attributes that add behaviors to Cycle ORM entities. It also provides a convenient API to create custom behavior attributes.

Installation

The package is available via composer and can be installed using the following command:

composer require cycle/entity-behavior

Configuration

After installation the package you need to create Cycle\ORM\ORM object with passing \Cycle\ORM\Entity\Behavior\EventDrivenCommandGenerator generator object as third (commandGenerator) argument.

Example

use Cycle\ORM\ORM;
use Cycle\ORM\Entity\Behavior\EventDrivenCommandGenerator;

// Application container (PSR-11 compatible).
// https://www.php-fig.org/psr/psr-11/
$container = new Container();
$commandGenerator = new EventDrivenCommandGenerator($schema, $container);

$orm = new ORM(
    factory: $factory,
    schema: $schema,
    commandGenerator: $commandGenerator,
);

That's it. Now you can use all benefits of this package.

Available behaviors

License:

The MIT License (MIT). Please see LICENSE for more information. Maintained by Spiral Scout.

统计信息

  • 总下载量: 320.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 27
  • 推荐数: 4

GitHub 信息

  • Stars: 8
  • Watchers: 4
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-16