purhur/feature-flags

这是特征标志的基本实现及其不同用途

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

This package is auto-updated.

Last update: 2024-09-11 20:16:58 UTC


README

CircleCI

特征标志

此组件提供了一些 FeatureFlags 类

用法

要查看当前的工作版本,你可能需要查看这里找到的测试: FeatureFlagsTest

$featureFlags = new \FeatureFlags\FeatureFlags(
    new \FeatureFlags\ArrayFlagConfiguration(array(
        'test_feature' => true,
        'test_indev_feature' => false,
    ))
);
if ($featureFlags->isActive('test_feature')) {
    ...
}