PHPRules is a PHP 5.3 fork of the php-rules project.
"PHP Rules is a rule engine that models formal propositional logic. It allows you to separate conditional logic from source code and database triggers in a reusable package, where explicit rules can be independently defined and managed."
- simplified rule syntax using
BOOL/VARto indicate propositions/variables - refactored rule/context loading that should make it easier to integrate into different storage systems
INoperator to evaluate if a value exists in a list- support to dynamically add operators
CompositeRuleclass to allow to pragmatically create nested rules
The recommended way to install phprules is through
composer. Just create a composer.json file and
run the php composer.phar install command to install it:
{
"require": {
"radebatz/phprules": "1.0.*@dev"
}
}
Alternatively, you can download the phprules.zip file and extract it.
PHPRules is licensed under both the MIT and GPL 2.0 licenses.

