drinks-it / rule-engine
规则引擎包是一个(子)系统,允许最终用户在特定事件上满足特定条件时运行指定的操作。
2.1.0
2023-12-18 15:23 UTC
Requires
- php: ^8.1 || ^8.2 || ^8.3
- langleyfoxall/math_eval: ^2.0
- symfony/config: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
- symfony/serializer: ^6.4 || ^7.0
Requires (Dev)
- api-platform/core: ^3.0 || ^3.1
- doctrine/doctrine-bundle: ^2.3
- doctrine/orm: ^2.3
- friendsofphp/php-cs-fixer: ^2.19 || ^3.0
- phpunit/php-code-coverage: ^9.2 || ^10.0
- symfony/maker-bundle: ^1.31
- symfony/phpunit-bridge: ^5.0 || ^6.0
- symfony/validator: ^5.0 || ^6.0
- dev-main
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0
- 1.0
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-support-symfony-64
- dev-action-logs
- dev-main-upgrade
- dev-dev
- dev-feat/php-attributes
- dev-feat/boolean-condition
This package is auto-updated.
Last update: 2024-09-18 17:07:17 UTC
README
composer require drinks-it/rule-engine
依赖关系
composer require drinks-it/rule-engine --with-dependencies
添加包
config/bundles.php
<?php return [ // ... another bundles DrinksIt\RuleEngineBundle\RuleEngineBundle::class => ['all' => true] ];
规则引擎配置
doctrine: dbal: types: rule-engine-conditions: DrinksIt\RuleEngineBundle\Doctrine\Types\ConditionsType rule-engine-action: DrinksIt\RuleEngineBundle\Doctrine\Types\ActionType rule-engine-event: DrinksIt\RuleEngineBundle\Doctrine\Types\TriggerEventType
创建实体
php bin/console make:rule-engine [Optional Name] php bin/console make:migration php bin/console doctrine:migrations:migrate