purhur / feature-flags
这是特征标志的基本实现及其不同用途
dev-master
2019-06-11 07:53 UTC
Requires
- php: >=7
Requires (Dev)
- phpunit/phpunit: ^7.0 || ^6.4 || ^5.7 || ^4.8.35
This package is auto-updated.
Last update: 2024-09-11 20:16:58 UTC
README
特征标志
此组件提供了一些 FeatureFlags 类
用法
要查看当前的工作版本,你可能需要查看这里找到的测试: FeatureFlagsTest
$featureFlags = new \FeatureFlags\FeatureFlags(
new \FeatureFlags\ArrayFlagConfiguration(array(
'test_feature' => true,
'test_indev_feature' => false,
))
);
if ($featureFlags->isActive('test_feature')) {
...
}