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

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

cleverage/ruler
===============

A business rules engine

v0.1.0(12y ago)229.5k↓33.3%1MITPHPPHP &gt;=5.3.0

Since Oct 21Pushed 12y ago58 watchersCompare

[ Source](https://github.com/cleverage/Ruler)[ Packagist](https://packagist.org/packages/cleverage/ruler)[ Docs](https://github.com/cleverage/Ruler)[ RSS](/packages/cleverage-ruler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3ab9f85d56d44616d033f1ba1802e1683b4853c29fcb000483003e61ed022f6d/68747470733a2f2f7472617669732d63692e6f72672f636c657665726167652f52756c65722e706e67)](https://travis-ci.org/cleverage/Ruler)

Ruler
=====

[](#ruler)

cleverage/Ruler is a PHP 5.3 Library. Use it to implement your own business rules, and link them in order to check if you are satisfying the set.

Exemple :

You want to check if the current user can activate a feature. For this, you have to check that :

- he is connected,
- he has the premium suscription,
- he has enough money in his account.

```
