json-logic-php
json-logic-php copied to clipboard
Build complex rules, serialize them as JSON, and execute them in PHP
I'm cross posting this to see if there is any interest with the php users - https://github.com/jwadhams/json-logic-js/issues/6
There is inconsistency with the JS implementation at least for `and`/`or` operators. The values are lazily evaluated in JS (while the docs doesn't specificaly mandates it, it hints it in...
Details are in issue #8. If accepted, users who are expecting `{"%": [10.5, 2]}` to result in 1 instead of 0.5 will be unhappy. Hence some might consider this a...
I'm happy to submit a PR, but I ran across an instance where running `{"%": [10.5, 2]}` resulted in 1 instead of 0.5. I checked against the JavaScript implementation and...
To evaluate array length instead of its value, you can use this syntax `myArray.length` inside the `var` field. Its useful to apply logic on the array length and not on...
Hello! Very impressed by JSON Logic – It works exceptionally well. Great work! I added a few operators for evaluating array conditions. These seem to be working well for my...
Hello. First of all, thank you for this project. Secondly, this is not PR, but some thoughts on the new look of JsonLogic. ### Callable $data Sometimes we need dynamic...
Thanks for the awesome library, Is it possible to trace which rule failed? I am building a recommendation engine and would like to know which rules failed so a report...