PHPackages                             dansrocks/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. dansrocks/ruler

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

dansrocks/ruler
===============

A simple stateless agnostic rules engine for PHP 7.2+

v2.1.1(7y ago)1573CC-BY-NC-ND-4.0PHPPHP &gt;=7.2CI failing

Since Feb 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dansrocks/RuleEngine)[ Packagist](https://packagist.org/packages/dansrocks/ruler)[ Docs](https://github.com/dansrocks/ruler)[ RSS](/packages/dansrocks-ruler/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

Ruler - An agnostic rule engine for PHP7.2+
-------------------------------------------

[](#ruler---an-agnostic-rule-engine-for-php72)

Author: Daniel Cabrera

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~97 days

Total

8

Last Release

2236d ago

Major Versions

v0.3-alpha → v1.0.02019-03-08

v1.1.0 → v2.0.02020-03-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/df1f87a4359b06d9fa8e8305c76adff860f15a7c0767048becc10f6027e1466c?d=identicon)[Daniel Cabrera](/maintainers/Daniel%20Cabrera)

---

Top Contributors

[![dansrocks](https://avatars.githubusercontent.com/u/1129211?v=4)](https://github.com/dansrocks "dansrocks (38 commits)")

---

Tags

rulesengineagnostic PHP

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ruler/ruler

A simple stateless production rules engine for modern PHP.

1.1k794.6k3](/packages/ruler-ruler)[mi-schi/phpmd-extension

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

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

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

13116.7k3](/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)
