Skip to content

Releases: nicoSWD/php-rule-parser

Release for PHP 8

05 Feb 22:31
Compare
Choose a tag to compare

Minor improvements

Release for PHP 8

05 Feb 21:51
89b6545
Compare
Choose a tag to compare

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

24 Jan 16:25
Compare
Choose a tag to compare

Support for custom objects

13 Jun 08:50
a023a94
Compare
Choose a tag to compare

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

28 Nov 00:06
Compare
Choose a tag to compare
0.6.0-alpha

Add support for custom object calls

Require PHPUnit ^5.4|^6.0

13 Oct 19:48
Compare
Choose a tag to compare
0.5.7

Require phpunit 5.4|6.0

Evaluator is no longer final

13 Oct 19:36
Compare
Choose a tag to compare
0.5.6

Merge branch 'master' of github.com:nicoSWD/php-rule-parser

Evaluator is no longer final

13 Oct 19:28
Compare
Choose a tag to compare
0.5.5

Update .travis.yml

Add support for classes as user functions

13 Oct 13:24
Compare
Choose a tag to compare
0.5.4

Add support for classes as user functions

Add CallableUserFunction interface

13 Oct 13:17
Compare
Choose a tag to compare