Download the PHP package fr3on/php-ruleset without Composer
On this page you can find all versions of the php package fr3on/php-ruleset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fr3on/php-ruleset
More information about fr3on/php-ruleset
Files in fr3on/php-ruleset
Download fr3on/php-ruleset
More information about fr3on/php-ruleset
Files in fr3on/php-ruleset
Vendor fr3on
Package php-ruleset
Short Description Standalone business rule and expression evaluator for PHP 8.4+
License MIT
Package php-ruleset
Short Description Standalone business rule and expression evaluator for PHP 8.4+
License MIT
Please rate this library. Is it a good library?
Informations about the package php-ruleset
php-ruleset
A standalone, framework-agnostic PHP 8.4+ expression and business rule evaluator. Secure, fast, and 100% type-safe (PHPStan Level 9).
Features
- Recursive Descent Parser: Pure AST-based evaluation (no
eval()). - Secure by Design: Strict whitelist for all identifiers and functions.
- Dot-Notation: Easily resolve nested data like
user.profile.age. - Zero Dependencies: 100% standalone.
- PHP 8.4+: Leverages property hooks and readonly classes.
Installation
Quick Start
Advanced Usage
Custom Functions
Pre-parsing & Caching
For high-performance scenarios, parse the expression once and cache the AST.
Security
RuleSet uses a strict whitelist approach.
- All identifiers must exist in the provided context.
- Only whitelisted functions can be called.
- Math operations enforce numeric types strictly.
License
MIT
All versions of php-ruleset with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
The package fr3on/php-ruleset contains the following files
Loading the files please wait ...