2017 © Pedro Peláez
 

symfony-bundle feature-checker-bundle

Enable and disable functional features in Symfony2 applications.

image

lwiesel/feature-checker-bundle

Enable and disable functional features in Symfony2 applications.

  • Tuesday, March 3, 2015
  • by lwiesel
  • Repository
  • 6 Watchers
  • 14 Stars
  • 215 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

FeatureCheckerBundle

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 Symfony2 application., (*3)

Usage

Define a feature configuration in your config.yml., (*4)

``` yaml, (*5)

app/config/config.yml

feature_checker: features: feature1: true feature2: false feature3: feature31: true feature32: true, (*6)


Then use the features names in controller annotations. Only the allowed features will execute the action. ``` php <?php // src/AppBundle/Controller/DefaultController.php namespace AppBundle\Controller; use LWI\FeatureCheckerBundle\Annotations\MustHaveFeature; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { /** * @MustHaveFeature("feature1") */ public function indexAction() { return $this->render('default/index.html.twig'); } }

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

``` php /** * @MustHaveFeature("feature1") * @MustHaveFeature("feature3.feature31") */ public function secondAction() { return $this->render('default/second.html.twig'); }, (*8)


You can also test whole feature sets. A feature set is considered enabled when all sub-features -at any sub-level- is enabled. ``` php /** * @MustHaveFeature("feature3") */ public function thirdAction() { return $this->render('default/third.html.twig'); } }

Installation

Please see Full documentation for details., (*9)

Testing

bash $ bin/phpspec run, (*10)

Contributing

Please see CONTRIBUTING for details., (*11)

Changelog

Please see CHANGELOG for details., (*12)

Security

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

Credits

License

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

The Versions

03/03 2015

dev-master

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

Enable and disable functional features in Symfony2 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Laurent Wiesel

feature-checker-bundle featurecheckerbundle

03/03 2015

v1.1.0

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

Enable and disable functional features in Symfony2 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Laurent Wiesel

feature-checker-bundle featurecheckerbundle

25/02 2015

v1.0.0

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

Enable and disable functional features in Symfony2 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Laurent Wiesel

feature-checker-bundle featurecheckerbundle

25/02 2015

v1.0.0-alpha.1

1.0.0.0-alpha1 https://github.com/lwiesel/FeatureCheckerBundle

Enable and disable functional features in Symfony2 applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Laurent Wiesel

feature-checker-bundle featurecheckerbundle