PHPackages                             o-p/json-logic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. o-p/json-logic

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

o-p/json-logic
==============

Make it easier to process large amount data with JsonLogic

v0.0.2(5y ago)140MITPHPPHP &gt;= 7.2

Since Sep 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/o-p/json-logic)[ Packagist](https://packagist.org/packages/o-p/json-logic)[ RSS](/packages/o-p-json-logic/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

An unofficial PHP implementation of JsonLogic
=============================================

[](#an-unofficial-php-implementation-of-jsonlogic)

### Usage

[](#usage)

- 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);
        })
    );
    ```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

2

Last Release

2050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc702ae4cff1a71c3a07a99816f1f58de1f239afc3894817d08843ec36375cfb?d=identicon)[o-p](/maintainers/o-p)

---

Top Contributors

[![o-p](https://avatars.githubusercontent.com/u/15345991?v=4)](https://github.com/o-p "o-p (10 commits)")

---

Tags

json-logic

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/o-p-json-logic/health.svg)

```
[![Health](https://phpackages.com/badges/o-p-json-logic/health.svg)](https://phpackages.com/packages/o-p-json-logic)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
