The ExpressionLanguage component provides an engine that can compile and evaluate expressions. An expression is a one-liner that returns a value (mostly, but not limited to, Booleans).
kasuganosora/expression-language
The ExpressionLanguage component provides an engine that can compile and evaluate expressions.
PHPMIT