2017 © Pedro Peláez
 

library feature-checker

Enable and disable functional features in php application.

image

lwiesel/feature-checker

Enable and disable functional features in php application.

  • Friday, February 27, 2015
  • by lwiesel
  • Repository
  • 2 Watchers
  • 5 Stars
  • 351 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

FeatureChecker

Packagist Software License Build Status Coverage Status Quality Score HHVM Total Downloads, (*1)

SensioLabsInsight, (*2)

Define features, and check if they are activated or not in your php application. Integrates well with Symfony2 bundle lwiesel/FeatureCheckerBundle., (*3)

Install

Via Composer, (*4)

``` bash $ composer require lwiesel/feature-checker, (*5)


## Usage ``` php $features = array( 'feature-A' => true, 'feature-B' => false, 'feature-set-C' => array( 'feature-C1' => true, 'feature-C2' => true, ), 'feature-set-D' => array( 'feature-D1' => true, 'feature-set-D2' => array( 'feature-D2-a' => true, 'feature-D2-b' => false, ), ), ); $checker = new LWI\FeatureChecker($features); // ... if ($checker->isFeatureEnabled('feature-A')) { // Do something here }

Sub-features can be checked with this notation:, (*6)

$checker->isFeatureEnabled('feature-set-C.feature-C1');// returns true

You can also test whole feature sets. A feature set is considered enabled when all sub-features -at any sub-level- is enabled., (*7)

$checker->isFeatureEnabled('feature-set-C');// returns true
$checker->isFeatureEnabled('feature-set-D');// returns false

Testing

bash $ bin/phpspec run, (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Changelog

Please see CHANGELOG for details., (*10)

Security

If you discover any security related issues, please email wiesel.laurent@gmail.com instead of using the issue tracker., (*11)

Credits

License

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

The Versions

27/02 2015

dev-master

9999999-dev https://github.com/lwiesel/FeatureChecker

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

feature-checker featurechecker

27/02 2015

v1.1.2

1.1.2.0 https://github.com/lwiesel/FeatureChecker

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

feature-checker featurechecker

26/02 2015

v1.1.1

1.1.1.0 https://github.com/lwiesel/FeatureChecker

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

feature-checker featurechecker

26/02 2015

v1.1.0

1.1.0.0 https://github.com/lwiesel/FeatureChecker

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

feature-checker featurechecker

24/02 2015

1.0.0

1.0.0.0 https://github.com/lwiesel/FeatureChecker

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

feature-checker featurechecker

24/02 2015

v1.0.0-alpha.3

1.0.0.0-alpha3

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

23/02 2015

v1.0.0-alpha.2

1.0.0.0-alpha2

Enable and disable functional features in php application.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Laurent Wiesel

23/02 2015

v1.0.0-alpha.1

1.0.0.0-alpha1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Laurent Wiesel