Skip to content

php-rules/php-rules

Repository files navigation

PHP Rules

Build Status Coverage Status

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."

...more

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.

About

A PHP 5.3 clone of the php-rules project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages