MilliRules integration for Acorn — route-aware conditions, HTTP response actions, CLI commands, and automatic rule discovery for your WordPress sites powered by the Roots.io Stack.
| Requirement | Version |
|---|---|
| PHP | >= 8.1 |
| Roots Acorn | ^4.0 | ^5.0 | ^6.0 |
| MilliRules | ^1.0 (auto-installed) |
composer require millipress/acorn-millirulesScaffold your first rule:
wp acorn rules:make:rule RedirectLegacyPagesThis creates app/Rules/RedirectLegacyPages.php with a ready-to-edit rule class that is auto-discovered by the service provider.
Full documentation is available at millipress.com/docs/acorn-millirules or in the docs/ directory:
- Introduction
- Installation
- Creating Rules
- Conditions & Actions
- Artisan Commands
- Custom Conditions & Actions
- Configuration
- Reference: Conditions · Actions · Route Context
- MilliRules — the core rule engine (pure PHP, framework-agnostic)
- millipress.com — MilliPress documentation and resources for MilliRules and MilliCache
GPL-2.0-or-later