ambrion/evocms-feature-flags
最新稳定版本:v0.1.0-alpha
Composer 安装命令:
composer require ambrion/evocms-feature-flags
包简介
Feature Flags module for EvolutionCMS CE 3 with rules engine, A/B testing and analytics
README 文档
README
🚩 Feature Flags for EvolutionCMS CE 3
Manage feature flags with rules engine, statistics, and A/B testing — built for EvolutionCMS CE 3.
📦 Installation
cd /core php artisan package:installrequire ambrion/evocms-feature-flags "v0.1.0-alpha" php artisan vendor:publish --provider="EvolutionCMS\FeatureFlags\FeatureFlagsServiceProvider" php artisan migrate
⚙️ Requirements
| Requirement | Version | Notes |
|---|---|---|
| PHP | ^8.3 |
Required for typed properties and readonly classes |
| EvolutionCMS CE | ≥3.1.30 |
Tested on v3.1.30; may work on earlier 3.x versions |
| Composer | ^2.0 |
For package installation and dependency management |
💡 Note: The module uses modern PHP 8.3 features (
readonlyclasses, typed properties, match expressions). PHP 8.1–8.2 are not supported.
⚙️ Quick Start
- Open Manager → Modules → Feature Flags in EvolutionCMS admin panel
- Create your first feature flag
- Use in your snippets:
if ($flags->isEnabled('my_flag', context: ['user_role' => 'manager'])) { // show the feature }
🎯 Key Features
- ✅ Rule-based evaluation: Enable features by user role, document category, date, percentage, and more
- ✅ A/B Testing: Split traffic between variants with deterministic user assignment
- ✅ Statistics & Analytics: Track flag evaluations, export data, visualize distributions
- ✅ Admin UI: Manage flags directly in EvolutionCMS manager — no config file edits needed
- ✅ TDD-friendly: Domain-driven design, fully testable without Evo bootstrap
🔗 Documentation
📬 Support
- 🐛 Bug reports: GitHub Issues
- ✉️ Email: ping@ambrion.dev
- 💬 Telegram: @ambrion_dev
📜 License
MIT © Ambrion
💡 Note: For Russian documentation, see README.ru.md.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-13