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 ago7 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

2933d 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

[hiraku/xml_builder

Simple DSL for building XML

141.6k1](/packages/hiraku-xml-builder)

PHPackages © 2026

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