Releases: nicoSWD/php-rule-parser
Releases · nicoSWD/php-rule-parser
Release for PHP 8
Release for PHP 8
This release doesn't add any new features, it just uses some of the new PHP 8 syntax.
Use version 0.6 if you're using PHP 7.
Add "not in" operator
Support for custom objects
This release adds the ability to call methods on objects, and use the result as part of the rule.
class User
{
// ...
public function points(): int
{
return 1337;
}
}
$variables = [
'user' => new User(),
];
$rule = new Rule('user.points() > 300', $variables);
var_dump($rule->isTrue()); // bool(true)
Add support for custom objects
0.6.0-alpha Add support for custom object calls
Require PHPUnit ^5.4|^6.0
0.5.7 Require phpunit 5.4|6.0
Evaluator is no longer final
0.5.6 Merge branch 'master' of github.com:nicoSWD/php-rule-parser
Evaluator is no longer final
0.5.5 Update .travis.yml
Add support for classes as user functions
0.5.4 Add support for classes as user functions
Add CallableUserFunction interface
0.5.3 Cleanup