2017 © Pedro Peláez
 

symfony-bundle featuretogglebundle

Feature toggling

image

vladab/featuretogglebundle

Feature toggling

  • Wednesday, March 9, 2016
  • by vladab
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,015 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

EmkaFeatureToggleBundle

This bundle helps you easily configure your feature toggling in Symfony2 by adding some simple tags to twig and extending it's configuration., (*1)

It's under developement and even though it's functional, its behavior and configuration may (and will) change., (*2)

Configuring your features

Add the following lines to your config.yml:, (*3)

feature_toggle:
    features:
        my_feature:
            name: my_feature # the name you use in your template
            enabled: true    # false

Use feature toggling in your templates

Once you've configured your features, you can surround a block of code in Twig template with a feature tag., (*4)

{% feature 'my_feature' %}
    ... add you code
{% endfeature %}

Now setting enabled: false in config.yml will hide all part of code defined with same feature name. After each configuration change don't forget to clear your cache to update your templates., (*5)

The Versions

09/03 2016

dev-master

9999999-dev

Feature toggling

  Sources   Download

MIT

The Requires

 

by Marek Kalnik

feature toggling

09/03 2016

0.3.0

0.3.0.0

Feature toggling

  Sources   Download

MIT

The Requires

 

by Marek Kalnik

feature toggling

07/03 2016

0.2.0

0.2.0.0

Feature toggling

  Sources   Download

MIT

The Requires

 

by Marek Kalnik

feature toggling

17/04 2012

0.1.0

0.1.0.0

Feature toggling

  Sources   Download

MIT

The Requires

 

by Marek Kalnik

feature toggling