PHPackages                             antonio30111988/evaluator - 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. antonio30111988/evaluator

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

antonio30111988/evaluator
=========================

Symfony Expression Language for Laravel

1.3.3(6y ago)0272MITPHPPHP &gt;=5.4

Since Apr 20Pushed 6y agoCompare

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

READMEChangelogDependencies (4)Versions (7)Used By (0)

Evaluator
=========

[](#evaluator)

[Symfony Expression Language](http://symfony.com/doc/current/components/expression_language/index.html) module for Laravel.

Forked from

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

[](#installation)

Simply update the `composer.json` file and run `composer install`.

```
"require": {
	"antonio30111988/evaluator": "1.3.*"
}
```

Quick Installation
------------------

[](#quick-installation)

`composer require "antonio30111988/evaluator=1.3.*"`

How To Use
----------

[](#how-to-use)

### Evaluating an expression

[](#evaluating-an-expression)

```
$test = [
    'foo' => 10,
    'bar' => 5
];

echo Evaluator::evaluate('foo > bar', $test); //this will return true
```

You can also save the expression rule.

```
$test = [
    'foo' => 10,
    'bar' => 5
];

Evaluator::expression()->add('test', 'foo > bar');

echo Evaluator::evaluateRule('test', $test); //this will return true
```

For supported expressions, visit the [Symfony Expression Language Component](http://symfony.com/doc/current/components/expression_language/index.html).

### Condition

[](#condition)

Let say we want to implement 10% tax to our collection.

```
$item = [
    'price' => 100
];

$condition = [
    'target' => 'price',
    'action' => '10%',
    'rule' => 'price > 50'
];

Evaluator::expression()->add('tax', $condition);

$calculated = Evaluator::condition('tax', $item);
```

Item with multiplier.

```
$item = [
	'price' => 50,
	'quantity' => 2
];

$condition = [
    'target' => 'price',
    'action' => '10%',
    'rule' => 'price > 50',
    'multiplier' => 'quantity'
];

Evaluator::expression()->add('tax', $condition);

$calculated = Evaluator::condition('tax', $item);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~298 days

Total

4

Last Release

2411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f72a959d170d42270206f78bb5bde7fecd461b88e7180ec1779c581dbfc06e2?d=identicon)[antonio30111988](/maintainers/antonio30111988)

---

Top Contributors

[![antonio-lolic-typeqast](https://avatars.githubusercontent.com/u/32478006?v=4)](https://github.com/antonio-lolic-typeqast "antonio-lolic-typeqast (6 commits)")[![antonio30111988](https://avatars.githubusercontent.com/u/10291298?v=4)](https://github.com/antonio30111988 "antonio30111988 (3 commits)")[![periloso](https://avatars.githubusercontent.com/u/5249810?v=4)](https://github.com/periloso "periloso (1 commits)")

---

Tags

symfonylaravelexpression-languagemath-functions

### Embed Badge

![Health badge](/badges/antonio30111988-evaluator/health.svg)

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

###  Alternatives

[kris/laravel-form-builder

Laravel form builder - symfony like

1.7k2.2M45](/packages/kris-laravel-form-builder)[brexis/laravel-workflow

Integerate Symfony Workflow component into Laravel.

283125.6k](/packages/brexis-laravel-workflow)[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
