PHPackages                             simonetti/feature-flags-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. simonetti/feature-flags-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

simonetti/feature-flags-bundle
==============================

Symfony Bundle to implement Feature Flags to your Application

v6.2.0(3mo ago)0301[1 PRs](https://github.com/moveis-simonetti/FeatureFlagsBundle/pulls)MITPHPPHP &gt;=8.1CI passing

Since Jan 26Pushed 3mo agoCompare

[ Source](https://github.com/moveis-simonetti/FeatureFlagsBundle)[ Packagist](https://packagist.org/packages/simonetti/feature-flags-bundle)[ Docs](https://github.com/DZunke/FeatureFlagsBundle)[ RSS](/packages/simonetti-feature-flags-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (27)Used By (0)

Symfony FeatureFlagsBundle
==========================

[](#symfony-featureflagsbundle)

[![Build Status](https://github.com/dzunke/feature-flags-bundle/actions/workflows/build.yml/badge.svg)](https://github.com/dzunke/feature-flags-bundle/actions/workflows/build.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/eae4901fa112749ff59d385b52de89fb3b21dfee5516e4a43a55a09ad9954474/68747470733a2f2f706f7365722e707567782e6f72672f647a756e6b652f666561747572652d666c6167732d62756e646c652f76)](//packagist.org/packages/dzunke/feature-flags-bundle)[![Total Downloads](https://camo.githubusercontent.com/ff54d47314cb8ccc16ae9e9f1c2db745ac1a96ea9177719b9f3e446abc3670b6/68747470733a2f2f706f7365722e707567782e6f72672f647a756e6b652f666561747572652d666c6167732d62756e646c652f646f776e6c6f616473)](//packagist.org/packages/dzunke/feature-flags-bundle)[![License](https://camo.githubusercontent.com/2412edc1167ccaf9cef37a831d00e2253e2f676c6519d2494eccfa6b7bb4b955/68747470733a2f2f706f7365722e707567782e6f72672f647a756e6b652f666561747572652d666c6167732d62756e646c652f6c6963656e7365)](//packagist.org/packages/dzunke/feature-flags-bundle)

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 &gt;6.1 Support is wanted!

Documentation
-------------

[](#documentation)

Setup
-----

[](#setup)

You can add the Bundle by running [Composer](http://getcomposer.org) on your shell or adding it directly to your composer.json

```
php composer.phar require dzunke/feature-flags-bundle:"^6.1"
```

```
"require" :  {
    "dzunke/feature-flags-bundle": "^6.1"
}
```

The Namespace will be registered by autoloading with Composer but to use the integrated features for symfony you have to register the Bundle.

```
# app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // [..]
        new DZunke\FeatureFlagsBundle\DZunkeFeatureFlagsBundle(),
    ];
}
```

Without any Configuration all Features will be enabled! But at this point you can start developing.

Usage
-----

[](#usage)

### Service-Container

[](#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.

```
# src/AcmeBundle/Controller/IndexController.php
