PHPackages                             bestit/feature-toggle-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. [Testing &amp; Quality](/categories/testing)
4. /
5. bestit/feature-toggle-bundle

Abandoned → [flagception/flagception-bundle](/?search=flagception%2Fflagception-bundle)ArchivedSymfony-bundle[Testing &amp; Quality](/categories/testing)

bestit/feature-toggle-bundle
============================

Feature toggle bundle on steroids.

4.3.0(4y ago)21213.5k42[15 issues](https://github.com/bestit/flagception-bundle/issues)[6 PRs](https://github.com/bestit/flagception-bundle/pulls)MITPHPPHP ^7.1.3 | ^8

Since Jun 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bestit/flagception-bundle)[ Packagist](https://packagist.org/packages/bestit/feature-toggle-bundle)[ RSS](/packages/bestit-feature-toggle-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (12)Versions (30)Used By (0)

Flagception
===========

[](#flagception)

**Feature toggle bundle on steroids!** Flagception is a simple and powerful feature toggle system for php. This bundle integrates the [Flagception PHP Libary](https://packagist.org/packages/flagception/flagception) for symfony 2.7 to 5.\* (and php 5.6 to php7.\*).

[![Latest Stable Version](https://camo.githubusercontent.com/7cd614857fcfe859341af8df937ce03148f65cf70eef8e5364111e87e251a14d/68747470733a2f2f706f7365722e707567782e6f72672f666c616763657074696f6e2f666c616763657074696f6e2d62756e646c652f762f737461626c65)](https://packagist.org/packages/flagception/flagception-bundle)[![Coverage Status](https://camo.githubusercontent.com/41e1b3d73f88299ab3d1ec086d509c60c33d3b38617390ade54a715a1e139051/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6265737469742f666c616763657074696f6e2d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bestit/flagception-bundle?branch=master)[![Build Status](https://camo.githubusercontent.com/37c4dc6e6bb25f6a541e13e6a37cd618d9846c400fd963ffd1f752f073d36f94/68747470733a2f2f7472617669732d63692e6f72672f6265737469742f666c616763657074696f6e2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bestit/flagception-bundle)[![Total Downloads](https://camo.githubusercontent.com/42f65ca8a9e7a8c61bf94b3e4403cabb373b79f2591a92b4be27b5ac9d812521/68747470733a2f2f706f7365722e707567782e6f72672f666c616763657074696f6e2f666c616763657074696f6e2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/flagception/flagception-bundle)[![License](https://camo.githubusercontent.com/e6e9d2496b6b1dc9c582f34191558736b86c6f5b5f5cfdbf5cfae3c529b5d679/68747470733a2f2f706f7365722e707567782e6f72672f666c616763657074696f6e2f666c616763657074696f6e2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/flagception/flagception-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/b294a767da157b11f3dc9638ee3a5cff75351ff5cf158578d52f39ea990b8a58/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34343233343738622d663664622d346637372d626233362d3037383262636466383263302f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/4423478b-f6db-4f77-bb36-0782bcdf82c0)

Bundle Version (Tag)Support SymfonyBranch&lt;=32.7 - 4.43.x&gt;=44.4 - currentmaster```
$ composer require flagception/flagception-bundle
```

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

[](#documentation)

- [Installation](docs/install.md)
- [Upgrade from 2.x](UPGRADE-3.0.md)
- [Upgrade from 3.x](UPGRADE-4.0.md)
- [Usage](docs/usage.md)
- [Twig flags](docs/twig.md)
- [Route flags](docs/route.md)
- [Annotation flags](docs/annotation.md)
- [Constraints](docs/constraint.md)
- [Environment variables](docs/environment.md)
- [Cookies](docs/cookie.md)
- [Database](docs/database.md)
- [Activators](docs/activator.md)
- [Profiler](docs/profiler.md)

Quick example
-------------

[](#quick-example)

Set some feature in your config (or use your own [activator](docs/activator.md) for fetching features from wherever you want) ...

```
flagception:

    # Your Features (optional you left it empty)
    features:

        # Feature name as key
        feature_123:
            # Default flag if inactive or active (default: false)
            default: true

        # Feature state from an environment variable
        feature_abc:
            env: FEATURE_ENV_ABC

        # Feature with constraint (active if user id is 12 OR it is between 8 am and 6 pm)
        feature_def:
            constraint: 'user_id == 12 or (date("H") > 8 and date("H") < 18)'

        # All togther (chain)
        feature_def:
            default: false
            env: FEATURE_ENV_ABC
            constraint: 'user_id == 12 or (date("H") > 8 and date("H") < 18)'
```

... and use it in controller, services or twig:

```
{% if feature('feature_123') %}
    {# Execute if feature is active ... #}
{% endif %}
```

See [usage documentation](docs/usage.md) for detailed examples.

Profiler
--------

[](#profiler)

This bundle ships a profiler tab, where you can see how often a feature was requested, which results it returns (active or inactive) and the given context.

[![Image of Profiler](docs/images/profiler.png)](docs/images/profiler.png)

Credits
-------

[](#credits)

Profiler icon from

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~63 days

Recently: every ~136 days

Total

29

Last Release

1483d ago

Major Versions

1.0.4 → 2.0.02017-10-11

2.1.2 → 3.0.02018-02-05

3.5.0 → 4.0.02020-01-30

3.5.1 → 4.0.22020-03-03

3.6.0 → 4.1.02020-12-14

PHP version history (4 changes)0.0.1PHP ^7.0

3.0.0PHP ^5.6||^7.0

4.0.0PHP ^7.2.5

4.1.0PHP ^7.1.3 | ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8ee6198aa244022667450faf6b6aa56403a3482e665635bc084e71eb520793d?d=identicon)[migo315](/maintainers/migo315)

![](https://www.gravatar.com/avatar/acc5af332f2a79dedb5aea83c3b4c2665d99fd2c14743fd0c2a3d70ecf0b7859?d=identicon)[best-it](/maintainers/best-it)

---

Top Contributors

[![migo315](https://avatars.githubusercontent.com/u/13180135?v=4)](https://github.com/migo315 "migo315 (92 commits)")[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (4 commits)")[![mKnoop](https://avatars.githubusercontent.com/u/6775586?v=4)](https://github.com/mKnoop "mKnoop (3 commits)")[![Haehnchen](https://avatars.githubusercontent.com/u/1011712?v=4)](https://github.com/Haehnchen "Haehnchen (3 commits)")[![RedactedProfile](https://avatars.githubusercontent.com/u/1039911?v=4)](https://github.com/RedactedProfile "RedactedProfile (2 commits)")[![teiling88](https://avatars.githubusercontent.com/u/4624237?v=4)](https://github.com/teiling88 "teiling88 (1 commits)")[![chq81](https://avatars.githubusercontent.com/u/1406816?v=4)](https://github.com/chq81 "chq81 (1 commits)")[![hanish-singla](https://avatars.githubusercontent.com/u/6129169?v=4)](https://github.com/hanish-singla "hanish-singla (1 commits)")[![0x346e3730](https://avatars.githubusercontent.com/u/28731165?v=4)](https://github.com/0x346e3730 "0x346e3730 (1 commits)")

---

Tags

bundleconstraintsfeaturefeature-flagsfeature-togglesrolloutsymfonytoggletestingsymfonybundleflagsfeaturefeature toggletogglerolloutfeature-flagsflagception

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bestit-feature-toggle-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bestit-feature-toggle-bundle/health.svg)](https://phpackages.com/packages/bestit-feature-toggle-bundle)
```

###  Alternatives

[flagception/flagception-bundle

Feature toggle bundle on steroids.

283.8M](/packages/flagception-flagception-bundle)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[flagception/flagception

Feature toggle on steroids.

134.3M5](/packages/flagception-flagception)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
