PHPackages                             ols/php-ruler - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ols/php-ruler

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ols/php-ruler
=============

A transparent expression &amp; rule evaluator in pure PHP. No dependencies. Strict typing, a safe mode that collects missing variables instead of failing, and an explain mode that shows exactly why a rule passed or failed. Move business logic out of your code.

v1.0.0(3d ago)01↑2900%MITPHP &gt;=8.1

Since Jun 6Compare

[ Source](https://github.com/olivier-ls/php-ruler)[ Packagist](https://packagist.org/packages/ols/php-ruler)[ Docs](https://github.com/olivier-ls/php-ruler)[ RSS](/packages/ols-php-ruler/feed)WikiDiscussions Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/olivier-ls/php-ruler).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance99

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

3d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/247223033?v=4)[olivier-ls](/maintainers/olivier-ls)[@olivier-ls](https://github.com/olivier-ls)

---

Tags

expressionrulesstrictexplainno-dependenciesevaluatorbusiness-rulesrule-enginepredicateexpression-language

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ols-php-ruler/health.svg)

```
[![Health](https://phpackages.com/badges/ols-php-ruler/health.svg)](https://phpackages.com/packages/ols-php-ruler)
```

###  Alternatives

[ruler/ruler

A simple stateless production rules engine for modern PHP.

1.1k815.0k3](/packages/ruler-ruler)[mi-schi/phpmd-extension

Contains extra phpmd rules from clean code book and the best practices of my experiences.

40896.1k5](/packages/mi-schi-phpmd-extension)[suin/php-cs-fixer-rules

A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher.

13121.0k3](/packages/suin-php-cs-fixer-rules)[hybridlogic/validation

A simple, extensible validation library for PHP with support for filtering and validating any input array along with generating client side validation code.

641.1k](/packages/hybridlogic-validation)

PHPackages © 2026

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