drinks-it/rule-engine

Rule Engine Bundle is a (sub)system which allows end-user to run specified actions if they met specified criteria(conditions) on specified events.

Installs: 6 255

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

2.1.0 2023-12-18 15:23 UTC

README

composer require drinks-it/rule-engine

depends

composer require drinks-it/rule-engine --with-dependencies 

Bundle add

config/bundles.php

<?php

return [
    // ... another bundles
    DrinksIt\RuleEngineBundle\RuleEngineBundle::class => ['all' => true]
];

rule-engine configuration

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

make entity

php bin/console make:rule-engine [Optional Name]
php bin/console make:migration
php bin/console doctrine:migrations:migrate