PHP Classes
elePHPant
Icontem

PHP Feature Switch: Activate, deactivate and store feature values

Recommend this page to a friend!

  Author Author  
Name: Marcel Pociot <contact>
Classes: 2 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
This package can activate, deactivate and store feature values.

It provides a class to set feature values to be associated to a name using a fluent interface.

Another class is provided to activate, deactivate, get features and save their values to a storage container implemented by a separate object passed to the class as a constructor parameter.

Details

PHP Feature Switcher (WIP)

A PHP feature switcher / feature toggle library with a fluent, easy to use, API.

$switch = new FeatureSwitch(new ArrayStorage());
$switch->activate(
    (new Feature())
        ->name('Chat')
        ->percentage(50)
);

License

The PHP Feature Switcher is free software licensed under the MIT license.


  Classes of Marcel Pociot  >  PHP Feature Switch  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Feature Switch
Base name: feature-switch
Description: Activate, deactivate and store feature values
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes
Group folder image Configuration Configuration formats parsing and generation View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageMpociot (1 directory)

  Files folder image Files  /  src  /  Mpociot  
File Role Description
Files folder imageFeatureSwitch (3 files, 1 directory)

  Files folder image Files  /  src  /  Mpociot  /  FeatureSwitch  
File Role Description
Files folder imageStorage (2 files)
  Plain text file Feature.php Class Class source
  Plain text file FeatureSwitch.php Class Class source
  Plain text file NullFeature.php Class Class source

  Files folder image Files  /  src  /  Mpociot  /  FeatureSwitch  /  Storage  
File Role Description
  Plain text file ArrayStorage.php Class Class source
  Plain text file StorageContract.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file FeatureSwitchTest.php Class Class source
  Plain text file FeatureTest.php Class Class source

Download Download all files: feature-switch.tar.gz feature-switch.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.