Back to browse
GitHub Repository

A transparent expression & rule evaluator in pure PHP. Strict typing, no dependencies, and an explain mode that shows exactly why a rule passed or failed.

0 starsPHP

PHP-ruler – strict rule engine in pure PHP, zero deps, explain mode

by asmodios·Jun 8, 2026·1 point·0 comments

AI Analysis

●●SolidBig BrainNiche Gem

Explain mode traces rule evaluation node-by-node when Symfony can't.

Strengths
  • Node-by-node explain mode shows exactly why rules passed or failed
  • Strict typing prevents silent type coercion bugs in rule evaluation
  • Safe mode collects all missing variables instead of failing on first
Weaknesses
  • Cannot access object properties or call methods limits enterprise use cases
  • Smaller operator surface than Symfony ExpressionLanguage for complex rules
Target Audience

PHP developers needing runtime business rule evaluation

Similar To

Symfony ExpressionLanguage · Hoa Ruler · Rule engines

Similar Projects