PHPackages                             lwiesel/feature-checker-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lwiesel/feature-checker-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

lwiesel/feature-checker-bundle
==============================

Enable and disable functional features in Symfony2 applications.

v1.1.0(11y ago)13225MITPHPPHP &gt;=5.3.2

Since Feb 25Pushed 11y ago6 watchersCompare

[ Source](https://github.com/lwiesel/FeatureCheckerBundle)[ Packagist](https://packagist.org/packages/lwiesel/feature-checker-bundle)[ Docs](https://github.com/lwiesel/FeatureCheckerBundle)[ RSS](/packages/lwiesel-feature-checker-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

FeatureCheckerBundle
====================

[](#featurecheckerbundle)

[![Packagist](https://camo.githubusercontent.com/6c110e27bb7106482298b69d77c5e105efb3766adeab9f17613671676d60f147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c77696573656c2f666561747572652d636865636b65722d62756e646c652e737667)](https://packagist.org/packages/lwiesel/feature-checker-bundle)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b4fc884ab7df7f41f3e63c1986eff8a4e26a2383b5e14e26cc18094eb6a4bab2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c77696573656c2f46656174757265436865636b657242756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lwiesel/FeatureCheckerBundle)[![Coverage Status](https://camo.githubusercontent.com/4ddf0c67ab7506c6cb82bef76115f5cc6ebc36e7dc3f440c6de89dd29c3c245f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c77696573656c2f46656174757265436865636b657242756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lwiesel/FeatureCheckerBundle/code-structure)[![Quality Score](https://camo.githubusercontent.com/8928efcf4c43b366438d51dd35d23fb674431c01836c04f5ccca04136799de7e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c77696573656c2f46656174757265436865636b657242756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lwiesel/FeatureCheckerBundle)[![HHVM](https://camo.githubusercontent.com/e4de419b5214153012f2dc5324f80ce8cf3d5b1bb2daf67659476c5496e523fa/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6c77696573656c2f666561747572652d636865636b65722d62756e646c652e737667)](http://hhvm.h4cc.de/package/lwiesel/feature-checker-bundle)[![Total Downloads](https://camo.githubusercontent.com/f0897a8c42406c2e905940eeb6c3cf904132375708908bf03682cf84b3a1d94a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c77696573656c2f666561747572652d636865636b65722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lwiesel/feature-checker-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/2b6ab2598aad039270e5d74aeba93e1faa0b578ac5e7cafbddab7b56d49da9bf/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34356632663631382d643333622d343035662d393166382d3066383430613663636637642f6269672e706e67)](https://insight.sensiolabs.com/projects/45f2f618-d33b-405f-91f8-0f840a6ccf7d)

Define features, and check if they are activated or not in your Symfony2 application.

Usage
-----

[](#usage)

Define a feature configuration in your `config.yml`.

```
# app/config/config.yml

feature_checker:
    features:
        feature1: true
        feature2: false
        feature3:
            feature31: true
            feature32: true
```

Then use the features names in controller annotations. Only the allowed features will execute the action.

```
