Download the PHP package dzunke/feature-flags-bundle without Composer
On this page you can find all versions of the php package dzunke/feature-flags-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dzunke/feature-flags-bundle
More information about dzunke/feature-flags-bundle
Files in dzunke/feature-flags-bundle
Package feature-flags-bundle
Short Description Symfony 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!
- Use Versions ^4.0 if Symfony 4.2 Support is wanted!
- Use Versions ^5.0 if Symfony 4.3 or 5.x Support is wanted!
- Use Versions ^6.0 if Symfony 6.0 Support is wanted!
- Use Versions ^6.1 if Symfony >6.1 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
Resources
License
FeatureFlagsBundle is licensed under the MIT license.
All versions of feature-flags-bundle with dependencies
symfony/http-foundation Version ^6.1
symfony/http-kernel Version ^6.1
symfony/dependency-injection Version ^6.1
symfony/config Version ^6.1
symfony/console Version ^6.1
symfony/twig-bridge Version ^6.1
symfony/yaml Version ^6.1