php-rule-parser icon indicating copy to clipboard operation
php-rule-parser copied to clipboard

PHP Rule Engine - Parses & Evaluates JavaScript-like expressions

Results 5 php-rule-parser issues
Sort by recently updated
recently updated
newest added

Will there be any future updates/changes to this library?

I'm trying to add a new function to use `each` function in my custom code

question

If a function contains more than one instance of the `test` function, it complains of a parse error // example bad rule: /a/.test('a') && /x/.test('x') Error: "preg_match(): Unknown modifier '.'"...

There is a PHP fatal error when **=== false/true** isn't added after "boolean" functions. Version: 0.7.1 PHP version: 8.1 How to replicate: ```php $engine_rule = new Rule('VAR.startsWith("xXx") || VAR.startsWith("xXx") ===...