radebatz / phprules
PHP Rules is a rule engine that models formal propositional logic.
dev-master / 1.0.x-dev
2016-10-20 13:19 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-12-21 15:24:07 UTC
README
PHPRules is a PHP 5.3 fork of the php-rules project.
Getting started
"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."
New Features
- simplified rule syntax using
BOOL
/VAR
to indicate propositions/variables - refactored rule/context loading that should make it easier to integrate into different storage systems
IN
operator to evaluate if a value exists in a list- support to dynamically add operators
CompositeRule
class to allow to pragmatically create nested rules
Installation
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.
License
PHPRules is licensed under both the MIT and GPL 2.0 licenses.