Download the PHP package frontastic/rulerz-bundle without Composer
On this page you can find all versions of the php package frontastic/rulerz-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download frontastic/rulerz-bundle
More information about frontastic/rulerz-bundle
Files in frontastic/rulerz-bundle
Package rulerz-bundle
Short Description Symfony2 Bundle for RulerZ
License MIT
Homepage https://github.com/K-Phoen/RulerZBundle
Informations about the package rulerz-bundle
RulerZBundle 
This bundle integrates RulerZ into Symfony.
Installation
Require the bundle:
And declare it into your app/AppKernel.php
file:
Usage
This bundle registers a rulerz
service which is an instance of RulerZ\RulerZ
.
See RulerZ's documentation for more information.
Custom operators
Custom operators can be added to RulerZ executors. The bundle provide a way to register new operators directly from the container, you just need to tag a service:
In addition to the rulerz.operator
tag, two other values are needed:
target
: the compilation target we want to register the operator for ;operator
: the name that will be given to the operator in rules.
Important: Operators registered as classes must implement the __invoke
magic method as RulerZ expects custom operators to be defined as callable.
Validators
A rule validator is provided by the bundle. In its simplest form, it will only validate the syntax of a given rule. Unknown variables or operators won't be detected unless you define a whitelist of accepted values.
Configuration reference
The targets
section allows you to enable only the compilation targets needed
by your application.
Licence
This bundle is under the MIT licence.
All versions of rulerz-bundle with dependencies
frontastic/rulerz Version ^0.22.0
frontastic/rulerz-bridge Version ^1.2.0
symfony/framework-bundle Version ^3.0|^4.0|^5.0|^6.0