Download the PHP package vladab/feature-flags-bundle without Composer
On this page you can find all versions of the php package vladab/feature-flags-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladab/feature-flags-bundle
More information about vladab/feature-flags-bundle
Files in vladab/feature-flags-bundle
Package feature-flags-bundle
Short Description Symfony2 Bundle to implement Feature Flags to your Application
License MIT
Homepage https://github.com/DZunke/FeatureFlagsBundle
Informations about the package feature-flags-bundle
Symfony FeatureFlagsBundle
The Bundle will allow you to implement Feature Flags to your Application. Please Note that there is no Interface available, so the Flags must be configured directly in Symfony-Configs.
Use Versions >= 2.0 if Symfony 3.0 Support is wanted!
Documentation
Setup
You can add the Bundle by running Composer on your shell or adding it directly to your composer.json
The Namespace will be registered by autoloading with Composer but to use the integrated features for symfony you have to register the Bundle.
Without any Configuration all Features will be enabled! But at this point you can start developing.
Usage
Service-Container
The simplest way to use the Bundle is to get the Container and request the state of a Feature. Note: Features that are not configured are enabled by default.
Twig
Argument-Usage
On every check you can give arguments to the check if you want to specify the check. The Arguments for a Flag can be definied by an array on the validation method. The Keys must be named like the condition itself. Please Note that if the Condition does not support the Arguments they would be ignored.
Creating a Condition
At first the Condition must be created. The Condition must implement the ConditionInterface. There is a general context available.
After the Class was created it must be defined as a Tagged-Service. With this Tag and the Alias the Condition would be loaded. At this point there is many space to extend the Condition by adding calls or arguments.
Configuration
Example
Available Conditions
Reference
License
FeatureFlagsBundle is licensed under the MIT license.