millipress/acorn-millirules
最新稳定版本:v1.1.0
Composer 安装命令:
composer require millipress/acorn-millirules
包简介
Acorn integration for MilliRules — route-aware conditions, actions & rules with CLI management
README 文档
README
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.
Requirements
| Requirement | Version |
|---|---|
| PHP | >= 8.1 |
| Roots Acorn | ^4.0 | ^5.0 | ^6.0 |
| MilliRules | ^1.0 (auto-installed) |
Quick Start
composer require millipress/acorn-millirules
Scaffold your first rule:
wp acorn rules:make:rule RedirectLegacyPages
This creates app/Rules/RedirectLegacyPages.php with a ready-to-edit rule class that is auto-discovered by the service provider.
Documentation
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
Related
- MilliRules — the core rule engine (pure PHP, framework-agnostic)
- millipress.com — MilliPress documentation and resources for MilliRules and MilliCache
License
GPL-2.0-or-later
统计信息
- 总下载量: 144
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-02-13