purhur / feature-flags
This is a basic implementation of feature flags and their diffrent uses
Installs: 6
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/purhur/feature-flags
Requires
- php: >=7
Requires (Dev)
- phpunit/phpunit: ^7.0 || ^6.4 || ^5.7 || ^4.8.35
This package is auto-updated.
Last update: 2025-09-11 22:26:20 UTC
README
Feature Flags
This component provides some FeatureFlags classes
Usage
To see the current working version you should probably look into the tests found here: FeatureFlagsTest
$featureFlags = new \FeatureFlags\FeatureFlags(
new \FeatureFlags\ArrayFlagConfiguration(array(
'test_feature' => true,
'test_indev_feature' => false,
))
);
if ($featureFlags->isActive('test_feature')) {
...
}