dev-master
9999999-dev https://github.com/datasift/php-lib-featureLibrary tool for managing feature flags
MIT
The Requires
- php >=5.3
- symfony/options-resolver ^2.0
The Development Requires
by Nathan Macnamara
Wallogit.com
2017 © Pedro Peláez
Library tool for managing feature flags
Simple PHP Library to manager feature flags, (*2)
Begin by installing this package through Composer. Edit your project's composer.json file to require datasift/feature., (*3)
"require": {
"datasift/feature": "1.*"
}
Next, update Composer from the Terminal:, (*4)
composer update
$feature = new FeatureManager([
'driver' => 'file',
'file' => '<path to json file>'
]);
$feature = new FeatureManager([
'driver' => 'array',
'data' => [
'flag1' => true,
'flag2' => false
]
]);
$feature = new FeatureManager([
'driver' => 'consul',
'host' => '127.0.0.1',
'port' => 8500
]);
To test the library itself, run the tests:, (*5)
composer test
Please see CONTRIBUTING for details., (*6)
The MIT License (MIT). Please see License File for more information., (*7)
Library tool for managing feature flags
MIT