symfony/expression-language
Provides an engine that can compile and evaluate expressions observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 97
- Release rhythm 90
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 4730
- days_rel: 67
- days_push: 19
- n_releases_24m: 25
Adoption not part of the score
2840 stars · 45 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Symfony PHP component providing an engine that compiles and evaluates one-line expressions with a syntax similar to PHP and Twig. It acts as a restricted sandbox for evaluating dynamic logic where raw PHP code cannot be used safely, such as in configuration, security rules, or user-editable business rules.
Use cases
- evaluate dynamic expressions in PHP safely
- build a business rule engine editable by non-developers
- define access rules in security configuration
- add conditions to validation constraints
- store discount or pricing rules in a database
- evaluate route matching conditions
- lint and parse expression strings before evaluation
When to choose
- you need to evaluate user- or admin-defined logic without executing arbitrary PHP
- you want a sandboxed expression engine with explicit variable declaration
- you are building a Symfony application and need expressions for security, validation, or routing
- you need compiled expressions for repeated fast evaluation
When to avoid
- you need a full general-purpose scripting language
- your expressions require complex multi-line logic or loops
- you are not working in PHP
Facets
library · maturity stable
parser interpreter compiler configuration-management security programming-languages web-development developer-tools php cross-platform expression-language symfony-component rule-engine sandboxed-evaluation business-rules automation
6 sources
- readme: https://github.com/symfony/expression-language · fetched 2026-08-28 · b2b5794d4a31
- homepage: https://symfony.com/expression-language · fetched 2026-08-29 · 48cc1ec6eff5
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/expression_language.html · fetched 2026-08-29 · 75bbb259b05e
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 2fd410222cfe
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · 83b70dd163fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/expression-language | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="symfony/expression-language")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem