-
For an one-time logic to data use case, the
apply
function is enough:echo \JsonLogic\JsonLogic::apply($rule, $data);
-
For a rule runs tons times, e.g. find matched records in daily logs:
$rule = \JsonLogic\JsonLogic::rule($rule); var_dump( array_filter($logs, function ($log) use ($rule) { return $rule->process($log); }) );
-
Notifications
You must be signed in to change notification settings - Fork 0
o-p/json-logic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published