Show HN: PHP-ruler – strict rule engine in pure PHP, zero deps, explain mode
Category: library
Tags: rule-engine, php, business-rules
Score: 6.3/10 (Innovation: 6, Technical: 7, Documentation: 8, Utility: 4)
PHP-ruler is a strict, dependency-free rule engine for PHP that evaluates business rules stored as strings with an explain mode and variable aliasing. It stands out by providing detailed evaluation traces and safe mode, making rules auditable and suitable for semi-trusted authors, though it deliberately avoids object access and method calls.
Target audience: backend devs
Repository: https://github.com/olivier-ls/php-ruler · PHP · MIT
View on Hacker News