PHPackages                             euautomation/canon - 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. euautomation/canon

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

euautomation/canon
==================

A WHERE matching thing

v1.1(5y ago)021.0k↓33.3%BSD-3-ClausePHPPHP &gt;=7.3.0

Since Nov 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/euautomation/canon)[ Packagist](https://packagist.org/packages/euautomation/canon)[ RSS](/packages/euautomation-canon/feed)WikiDiscussions main Synced 1mo ago

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

canon
=====

[](#canon)

Using something like the WHERE part of an SQL query to evaluate an array like thing is true or false.

Basic Usage
===========

[](#basic-usage)

```
use EUAutomation\Canon\Processor;
$processor = new Processor();
$expressions = $processor->process('foo = "bar"');
$expressions->evaluate([ "foo" => "bar" ]); // true
```

Supports
========

[](#supports)

- Basic Operators (=, !=, &gt;, &gt;=, &lt;, &lt;=) `foo > 9000`
- LIKE Operator `foo LIKE "shoes%"`
- LIKE ANY Operator `foo LIKE ANY ("shoes%", "socks%")`
- IN Operator `foo IN (1, 2)`
- Nested Columns Refs `foo.bar = 'baz'`
- Brackets `foo = 2 AND (bar = 3 OR baz < 10)`

Acknowledgments
===============

[](#acknowledgments)

-  - lots of the parser code is from here

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~2 days

Total

2

Last Release

2008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/042af73825954ef2e445a17d81becf400c98b5a86026b0dc7a846e8a849bc2a0?d=identicon)[euautomation](/maintainers/euautomation)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/euautomation-canon/health.svg)

```
[![Health](https://phpackages.com/badges/euautomation-canon/health.svg)](https://phpackages.com/packages/euautomation-canon)
```

PHPackages © 2026

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