Simple package for feature flagging interface/implementation.
$ composer require frozzare/features
features([
'log' => false
]);
...
features()->enable('log');
...
if (features()->enabled('log')) {
...
}
...
features()->disable('log');
MIT © Fredrik Forsmo