PHPackages                             softonic/jaxer - 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. softonic/jaxer

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

softonic/jaxer
==============

PHP Engine Rule to rule them all

1.0.0(4y ago)32.9kApache-2.0PHPPHP &gt;=8.0

Since Mar 2Pushed 4y ago5 watchersCompare

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

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

Jaxer
=====

[](#jaxer)

[![Latest Version](https://camo.githubusercontent.com/c2a5944b9488435e4962a6a5963883d150978a48b5e794dbf94ed5cd379da4dd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f6a617865722e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/jaxer/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/softonic/jaxer/actions/workflows/php.yml/badge.svg)](https://github.com/softonic/jaxer/actions/workflows/php.yml)[![Total Downloads](https://camo.githubusercontent.com/b54b07fe7388e39cc04b525a1528f2ed9f74a5601d7107aa0a582f534c1e772e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f6a617865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/jaxer)[![Average time to resolve an issue](https://camo.githubusercontent.com/b1210b97687132e6de336139fe124e73db58b75a83abe1d02ee6f2c25946a5b6/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f6a617865722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/jaxer "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/aec28223365e3ed24ed68568a71552532efe81e4503ff0ca28e8a36657fcad1d/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f6a617865722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/jaxer "Percentage of issues still open")

**One rule engine to rule them all**

**Jaxer** allows you to evaluate complex rules in an easy way and know the reason behind the validation result.

Main features
-------------

[](#main-features)

- Evaluate rules.
- Rules evaluation tracing.
- Provide generic rules:
    - [Logical And](https://en.wikipedia.org/wiki/Truth_table#Logical_conjunction_(AND))
    - [Logical Or](https://en.wikipedia.org/wiki/Truth_table#Logical_disjunction_(OR))
    - [Logical Not](https://en.wikipedia.org/wiki/Truth_table#Logical_negation)

Installation
------------

[](#installation)

You can require the last version of the package using composer

```
composer require softonic/jaxer
```

### Usage

[](#usage)

The rules are classes that needs to implement `\Softonic\Jaxer\Rules\Rule` interface. They usually get their input parameters through constructor like for example:

```
