Download the PHP package rutkai/featureflipperbundle without Composer
On this page you can find all versions of the php package rutkai/featureflipperbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rutkai/featureflipperbundle
More information about rutkai/featureflipperbundle
Files in rutkai/featureflipperbundle
Download rutkai/featureflipperbundle
More information about rutkai/featureflipperbundle
Files in rutkai/featureflipperbundle
Vendor rutkai
Package featureflipperbundle
Short Description Provides advanced feature toggling support for Symfony2 based projects
License MIT
Package featureflipperbundle
Short Description Provides advanced feature toggling support for Symfony2 based projects
License MIT
Please rate this library. Is it a good library?
Informations about the package featureflipperbundle
Advanced Feature Flipper (toggle) for Symfony2
This bundle provides a feature flipper interface for Symfony2. Main features:
- Feature checks in twigs and controllers (via DI)
- Assigning expiration date to features
- Assigning responsible people to features
Installation
Add this bundle to composer.json
file:
"require": {
...
"rutkai/featureflipperbundle": "~1.0"
},
Register it in AppKernel:
$bundles = array(
...
new Rutkai\FeatureFlipperBundle\RutkaiFeatureFlipperBundle(),
);
Usage
Configuration
# config.yml
rutkai_feature_flipper:
enable_undefined_feature: true # Optional, sets the default strategy for undefined features
expiration_warning: 7 # Optional, expiration e-mails will be sent to responsibles if expiration occurs within the next x days
feature_class: Rutkai\FeatureFlipperBundle\Feature\Feature # Optional, default feature container, must implement FeatureInterface
templates:
warning_console: RutkaiFeatureFlipperBundle:FeatureCheck:warning.txt.twig # Optional, output warning template for feature check command
warning_email: RutkaiFeatureFlipperBundle:FeatureCheck:warning.txt.twig # Optional, e-mail warning template for feature check command
alert_console: RutkaiFeatureFlipperBundle:FeatureCheck:alert.txt.twig # Optional, output alert template for feature check command
alert_email: RutkaiFeatureFlipperBundle:FeatureCheck:alert.txt.twig # Optional, e-mail alert template for feature check command
email:
from: [email protected] # Required, sender of the warning (default: [email protected])
subject: Expired feature # Optional, subject for the warnings
features:
feature_id:
enabled: true # Required
expiration: "2015-03-03 12:00:00" # Optional
responsible: "András Rutkai" # Optional
responsible_email: [email protected] # Optional
feature_id_2:
enabled: false
expiration: ~ # no expiration
responsible: ~ # no responsible
Twig
{% if feature_enabled("feature_id") %}
...
{% endif %}
Twig functions:
feature_enabled('feature_id')
has_feature('feature_id')
Controller or services
$featureManager = $this->get('feature.manager');
if ($featureManager->isEnabled("feature_id"))
...
Feature manager functions:
$featureManager->isEnabled('feature_id')
$featureManager->hasFeature('feature_id')
$featureManager->getFeature('feature_id')
$featureManager->addFeature($feature)
where$feature
implementsFeatureInterface
Roadmap
- 1.0.0: YML/XML based configuration, notifications using e-mail
- 1.1.0: Doctrine backend for storing features
- 1.2.0: Redis backend for storing features
All versions of featureflipperbundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
symfony/dependency-injection Version ~2.3
symfony/config Version ~2.3
symfony/http-kernel Version ~2.3
symfony/console Version ~2.3
symfony/swiftmailer-bundle Version ~2.3
twig/twig Version >=1.12
symfony/dependency-injection Version ~2.3
symfony/config Version ~2.3
symfony/http-kernel Version ~2.3
symfony/console Version ~2.3
symfony/swiftmailer-bundle Version ~2.3
twig/twig Version >=1.12
The package rutkai/featureflipperbundle contains the following files
Loading the files please wait ....