Ruler is an open-source PHP production rules engine that evaluates configurable business conditions and executes corresponding actions. Its stateless architecture separates rule definitions from the data used during evaluation. The library provides a straightforward domain-specific language for constructing rules with readable comparison and logical operations. Developers can define conditions involving numbers, strings, booleans, collections, and mathematical expressions. It supports arithmetic calculations, set operations, and combinations of multiple propositions within a single rule. A context object supplies values or callable expressions when rules are evaluated. Actions can be attached to rules and executed when their conditions are satisfied. Ruler does not prescribe how rules are stored or managed, allowing integration with databases, configuration files, and custom application frameworks.

Features

  • Stateless Business Rule Evaluation
  • Fluent RuleBuilder Domain-Specific Language
  • Logical and Comparison Operators
  • Mathematical and Set-Based Operations
  • Dynamic Context Variables and Callable Values
  • Conditional Action Execution

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow Ruler

Ruler Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ruler!

Additional Project Details

Programming Language

PHP

Related Categories

PHP System Software

Registered

2026-10-21