PHPackages                             markup/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. markup/ruler

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

markup/ruler
============

A simple stateless production rules engine for PHP 5.3.

125.8kPHP

Since Oct 14Pushed 12y ago2 watchersCompare

[ Source](https://github.com/usemarkup/Ruler)[ Packagist](https://packagist.org/packages/markup/ruler)[ RSS](/packages/markup-ruler/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ruler
=====

[](#ruler)

The version of Ruler is forked from bobthecow/Ruler. It removes the ability for a rule to store a callback which can be executed when the rule passes (this should be delegated to another mechanism).

Additionally when a rule does not pass, the reason for the failure is stored.

Ruler is a simple stateless production rules engine for PHP 5.3+.

Ruler has an easy, straightforward DSL
--------------------------------------

[](#ruler-has-an-easy-straightforward-dsl)

... provided by the RuleBuilder:

```
