purhur/feature-flags

This is a basic implementation of feature flags and their diffrent uses

dev-master 2019-06-11 07:53 UTC

This package is auto-updated.

Last update: 2024-04-11 19:27:55 UTC


README

CircleCI

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')) {
    ...
}