PHPackages                             zortje/rules - 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. zortje/rules

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

zortje/rules
============

Library for creating rules and managing results

1.0.1(9y ago)129MITPHPPHP &gt;=7.0

Since Jun 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zortje/rules)[ Packagist](https://packagist.org/packages/zortje/rules)[ RSS](/packages/zortje-rules/feed)WikiDiscussions master Synced 2mo ago

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

Rules
=====

[](#rules)

Library for creating rules and managing results

[![Packagist](https://camo.githubusercontent.com/aae720695b761a8ade7af2455b93d3f1d4f0753c3b7a65b7d97588c34a9c52d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f72746a652f72756c65732e7376673f7374796c653d666c6174)](https://packagist.org/packages/zortje/rules)[![Travis](https://camo.githubusercontent.com/133e6fdbf8c1f7c0d2af52a433e7f6e4d9c972b4657fb37ad850a248263a5df0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a6f72746a652f72756c65732e7376673f7374796c653d666c6174)](https://travis-ci.org/zortje/rules)[![Codecov](https://camo.githubusercontent.com/de27123e33baca9623cc14f620497eed8349526497b25f4fd3e78b101f302432/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7a6f72746a652f72756c65732e737667)](https://codecov.io/github/zortje/rules)[![Scrutinizer](https://camo.githubusercontent.com/c45e4fc64cf49e324769d8a15a0c6fbc0cf9741ba6501a25a1c5cfe236c1d560/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a6f72746a652f72756c65732e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/zortje/rules/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/e4c3d3105829a9eb6152d9cc30e5abd840a29d44348238c557b7df857754849b/68747470733a2f2f646570656e64656e637963692e636f6d2f6769746875622f7a6f72746a652f72756c65732f6261646765)](https://dependencyci.com/github/zortje/rules)[![Packagist](https://camo.githubusercontent.com/2cf56d9d5013fcb031942c13b034df6f04c0d1867ae4be219627968f4741875c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f72746a652f72756c65732e7376673f7374796c653d666c6174)](https://packagist.org/packages/zortje/rules)

[![SensioLabsInsight](https://camo.githubusercontent.com/8c734b83bac8711d7ae1dbc824921a5eb4c377a6e411fefb30efc0ea22c49b27/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33653039373433632d336565362d346264382d393164382d3962373966363565383736352f6269672e706e67)](https://insight.sensiolabs.com/projects/3e09743c-3ee6-4bd8-91d8-9b79f65e8765)

Installing via Composer
-----------------------

[](#installing-via-composer)

The recommended way to install Rules is through [Composer](https://getcomposer.org/).

```
{
    "require": {
        "zortje/rules": "~1.0"
    }
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/515c147cfd9178357f516903b92c2ecce6970a16418e40bf26d184eca03dc68e?d=identicon)[Zortje](/maintainers/Zortje)

---

Top Contributors

[![zortje](https://avatars.githubusercontent.com/u/3150158?v=4)](https://github.com/zortje "zortje (8 commits)")

---

Tags

rules

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/zortje-rules/health.svg)

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

###  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)[resultsystems/validation

Inspired 'KennedyTedesco Validation' - The power of 'Respect Validation' on Laravel.

2832.4k4](/packages/resultsystems-validation)[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)
