cline / ruler
Fluent rule engine with proposition-based evaluation and 50+ operators for building conditional business logic
3.1.0
2025-12-13 04:45 UTC
Requires
- php: ^8.5.0
- mtdowling/jmespath.php: ^2.8
- symfony/expression-language: ^7.4.0
Requires (Dev)
- cline/coding-standard: ^1.5.7
- ergebnis/composer-normalize: ^2.48.2
- orchestra/testbench: ^10.8
- pestphp/pest: ^4.1.6
- pestphp/pest-plugin-laravel: ^4.0
- pestphp/pest-plugin-type-coverage: ^4.0.3
- symfony/var-dumper: ^7.4.0
README
Fluent rule engine with proposition-based evaluation and 50+ operators for building conditional business logic.
Requirements
Requires PHP 8.4+
Installation
composer require cline/ruler
Documentation
- Getting Started - Installation and basic usage
- Operators - 50+ comparison, math, set operators
- Rules and Context - Rule composition and dynamic context
- Text-Based DSL - Wirefilter-style text syntax
- DSL Implementations - All five DSL options compared
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.