PHPackages                             profideo-ci/expression-language - 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. profideo-ci/expression-language

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

profideo-ci/expression-language
===============================

Symfony ExpressionLanguage Component

2.10(8y ago)07.3kMITPHPPHP &gt;=5.3.9

Since Oct 4Pushed 7y ago6 watchersCompare

[ Source](https://github.com/profideo-ci/expression-language)[ Packagist](https://packagist.org/packages/profideo-ci/expression-language)[ Docs](https://symfony.com)[ RSS](/packages/profideo-ci-expression-language/feed)WikiDiscussions master Synced 1mo ago

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

ExpressionLanguage Component
============================

[](#expressionlanguage-component)

The ExpressionLanguage component provides an engine that can compile and evaluate expressions:

```
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;

$language = new ExpressionLanguage();

echo $language->evaluate('1 + foo', array('foo' => 2));
// would output 3

echo $language->compile('1 + foo', array('foo'));
// would output (1 + $foo)

```

By default, the engine implements simple math and logic functions, method calls, property accesses, and array accesses.

You can extend your DSL with functions:

```
$compiler = function ($arg) {
    return sprintf('strtoupper(%s)', $arg);
};
$evaluator = function (array $variables, $value) {
    return strtoupper($value);
};
$language->register('upper', $compiler, $evaluator);

echo $language->evaluate('"foo" ~ upper(foo)', array('foo' => 'bar'));
// would output fooBAR

echo $language->compile('"foo" ~ upper(foo)');
// would output ("foo" . strtoupper($foo))

```

Resources
---------

[](#resources)

You can run the unit tests with the following command:

```
$ cd path/to/Symfony/Component/ExpressionLanguage/
$ composer.phar install --dev
$ phpunit

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 56.8% 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 ~37 days

Recently: every ~280 days

Total

46

Last Release

2934d ago

PHP version history (2 changes)v2.4.0-BETA1PHP &gt;=5.3.3

v2.7.0-BETA1PHP &gt;=5.3.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/77a33831f0460ee1f8c14d31d6ae90426c4a3b6fb5876fc283c80030150c3bd4?d=identicon)[profideo-ci](/maintainers/profideo-ci)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (63 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (14 commits)")[![fsevestre](https://avatars.githubusercontent.com/u/4130750?v=4)](https://github.com/fsevestre "fsevestre (9 commits)")[![sowbiba](https://avatars.githubusercontent.com/u/7426640?v=4)](https://github.com/sowbiba "sowbiba (4 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (2 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (2 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (2 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (2 commits)")[![parnas](https://avatars.githubusercontent.com/u/152811?v=4)](https://github.com/parnas "parnas (2 commits)")[![zerustech](https://avatars.githubusercontent.com/u/417412?v=4)](https://github.com/zerustech "zerustech (1 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")[![peterrehm](https://avatars.githubusercontent.com/u/2010989?v=4)](https://github.com/peterrehm "peterrehm (1 commits)")[![polc](https://avatars.githubusercontent.com/u/3513348?v=4)](https://github.com/polc "polc (1 commits)")[![profideo-ci](https://avatars.githubusercontent.com/u/4559839?v=4)](https://github.com/profideo-ci "profideo-ci (1 commits)")[![pylebecq](https://avatars.githubusercontent.com/u/351471?v=4)](https://github.com/pylebecq "pylebecq (1 commits)")[![saro0h](https://avatars.githubusercontent.com/u/667519?v=4)](https://github.com/saro0h "saro0h (1 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (1 commits)")

### Embed Badge

![Health badge](/badges/profideo-ci-expression-language/health.svg)

```
[![Health](https://phpackages.com/badges/profideo-ci-expression-language/health.svg)](https://phpackages.com/packages/profideo-ci-expression-language)
```

###  Alternatives

[bramus/router

A lightweight and simple object oriented PHP Router

1.1k458.8k49](/packages/bramus-router)[awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

262815.1k5](/packages/awcodes-filament-table-repeater)[oddvalue/laravel-drafts

A simple, drop-in drafts/revisions system for Laravel models

423196.1k2](/packages/oddvalue-laravel-drafts)[langleyfoxall/math_eval

✖️➕➖➗ `math\_eval` safely evaluates mathematical expressions

43678.1k3](/packages/langleyfoxall-math-eval)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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