ruler/ruler
Ruler is a simple, stateless rules engine for PHP. Define propositions backed by callables, combine them with logical and comparison operators, and evaluate business rules at runtime—no database, no session state, and no configuration required.
Ruler is a lightweight, framework-agnostic production rules engine for PHP. It lets you express business logic as reusable Rule objects evaluated against a Context of variables, keeping conditional logic out of controllers and services. Rules are stateless and composable, making them easy to test, reuse, and adapt without scattering if statements throughout your codebase.
How can I help you explore Laravel packages today?