PHPackages                             systopia/expression-language-ext - 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. systopia/expression-language-ext

ActiveLibrary

systopia/expression-language-ext
================================

Extension for the Symfony ExpressionLanguage Component

v0.1.1(1y ago)218.4k↓40.6%MITPHPPHP ^7.4 || ^8

Since Oct 20Pushed 1y ago4 watchersCompare

[ Source](https://github.com/systopia/expression-language-ext)[ Packagist](https://packagist.org/packages/systopia/expression-language-ext)[ Docs](https://github.com/systopia/expression-language-ext)[ RSS](/packages/systopia-expression-language-ext/feed)WikiDiscussions main Synced 1mo ago

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

Systopia Symfony ExpressionLanguage Extension
=============================================

[](#systopia-symfony-expressionlanguage-extension)

This is an extension for [Symfony's ExpressionLanguage component](https://symfony.com/doc/current/components/expression_language.html). It provides the functions [date\_create](./src/FunctionProvider/DateCreateExpressionFunctionProvider.php)and [map](./src/FunctionProvider/MapExpressionFunctionProvider.php) as well as different [PHP functions](./src/FunctionProvider/PhpFunctionsFunctionProvider.php). For simplified use all those functions are available in the class [SystopiaExpressionLanguage](./src/SystopiaExpressionLanguage.php).

`date_create` Function
----------------------

[](#date_create-function)

The `date_create` function creates an object of type `\DateTimeImmutable` by using the default constructor.

Example:

```
$expressionLanguage = new SystopiaExpressionLanguage();
$dateTime = $expressionLanguage->evaluate('date_create("2000-01-02 03:04:05")');
```

`map` Function
--------------

[](#map-function)

The function `map` allows to apply an expression to the values of an array (actually any iterable). Each pair of key and value are provided as variables named `key` and `value` to the expression.

Example:

```
$array = [
    'x' => (object) ['a' => 1, 'b' => 2],
    'y' => (object) ['a' => 3, 'b' => 4],
];

$expressionLanguage = new SystopiaExpressionLanguage();
$mapped = $expressionLanguage->evaluate(
    'map(array, "key ~ \": \" ~ (value.a + value.b)")',
     ['array' => $array]
);

var_dump($mapped);
```

Output:

```
array(2) {
  [0]=>
  string(4) "x: 3"
  [1]=>
  string(4) "y: 7"
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~401 days

Total

2

Last Release

539d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5405481?v=4)[dontub](/maintainers/dontub)[@dontub](https://github.com/dontub)

![](https://www.gravatar.com/avatar/c47bde670f40823e7dfc00eb21125743d22a67525e9c0545258f1ed052f46537?d=identicon)[bjendres](/maintainers/bjendres)

---

Top Contributors

[![dontub](https://avatars.githubusercontent.com/u/5405481?v=4)](https://github.com/dontub "dontub (5 commits)")

---

Tags

symfony-expression-language

### Embed Badge

![Health badge](/badges/systopia-expression-language-ext/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[friendsofsymfony/http-cache-bundle

Set path based HTTP cache headers and send invalidation requests to your HTTP cache

43813.2M47](/packages/friendsofsymfony-http-cache-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)

PHPackages © 2026

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