2017 © Pedro Peláez
 

library feature

Library tool for managing feature flags

image

datasift/feature

Library tool for managing feature flags

  • Wednesday, May 18, 2016
  • by nathanmac
  • Repository
  • 24 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Feature Flags

Latest Version on Packagist Software License Build Status Total Downloads, (*1)

Simple PHP Library to manager feature flags, (*2)

Installation

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

Drivers

  • Array - Simple array of key value pairs.
  • File - JSON file containing key value pairs.
  • Consul - Using consul key value store.
  • Redis - Using redis key value store.

Usage

$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
]);

Testing

To test the library itself, run the tests:, (*5)

composer test

Contributing

Please see CONTRIBUTING for details., (*6)

Credits

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

18/05 2016

dev-master

9999999-dev https://github.com/datasift/php-lib-feature

Library tool for managing feature flags

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nathan Macnamara