2017 © Pedro PelĂĄez
 

symfony-bundle feature-toggle-bundle

A bundle to manage feature toggles.

image

kukulili-labs/feature-toggle-bundle

A bundle to manage feature toggles.

  • Wednesday, November 13, 2013
  • by kukulili-labs
  • Repository
  • 1 Watchers
  • 5 Stars
  • 16,517 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FeatureToggleBundle

A bundle to manage feature toggles., (*1)

This Bundle is inspired by the SoclozFeatureFlagBundle., (*2)

Build Status Dependency Status, (*3)

Installation

Install package with composer, (*4)

``` json "kukulili-labs/feature-toggle-bundle": "dev-master", (*5)


Register bundles in AppKernel ``` php new KukuliliLabs\FeatureToggleBundle\KukuliliLabsFeatureToggleBundle(),

Configuration

The basic configuration is:, (*6)

# app/config/config.yml
kukulili_labs_feature_toggle:
    feature_toggles:
        feature_toggles_name: # change it to the name of your feature toggle
            state: enabled # change to disabled for disable your feature toggle
            description: # this option is optional and will be used later

Using

Controller, (*7)

if ($this->get('kukulili_labs_feature_toggle.feature_toggles')->isEnabled('feature_toggles_name')) {...}

Twig, (*8)

{% if feature_toggle_is_enabled('feature_toggles_name') %}
...
{% endif %}

Dis-/Enabling a specific feature toggle on a session, (*9)

$this->get('kukulili_labs_feature_toggle.feature_toggles')->disableForSession('feature_toggles_name');
$this->get('kukulili_labs_feature_toggle.feature_toggles')->enableForSession('feature_toggles_name');

License

This bundle is released under the MIT license (see LICENSE)., (*10)

The Versions

13/11 2013

dev-master

9999999-dev https://github.com/kukulili-labs/FeatureToggleBundle

A bundle to manage feature toggles.

  Sources   Download

MIT

The Requires

 

The Development Requires

feature toggle flag

07/11 2013

v1.0.0

1.0.0.0 https://github.com/kukulili-labs/FeatureToggleBundle

A bundle to manage feature toggles.

  Sources   Download

MIT

The Requires

 

The Development Requires

feature toggle flag