Simple feature toggle library
composer require treehouselabs/feature-toggle
$features = new FeatureToggleCollection();
$features->registerToggle(
'feature-x',
new BooleanFeatureToggle(true)
);
if ($features->isEnabled('feature-x')) {
// perform stuff for feature-x
}
composer test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.