Manage feature flags with rules engine, statistics, and A/B testing — built for EvolutionCMS CE 3.
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| 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.
- 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
}- ✅ 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
- 🐛 Bug reports: GitHub Issues
- ✉️ Email: ping@ambrion.dev
- 💬 Telegram: @ambrion_dev
MIT © Ambrion
💡 Note: For Russian documentation, see README.ru.md.