PHPackages                             metro-markets/feature-flag-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. metro-markets/feature-flag-bundle

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

metro-markets/feature-flag-bundle
=================================

Metro Markets Symfony Feature flag Bundle for quickly integration with configcat and other providers.

v0.1(4y ago)13103MITPHPPHP  ^8.0 || ^7.3

Since Jul 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/METRO-Markets/feature-flag-bundle)[ Packagist](https://packagist.org/packages/metro-markets/feature-flag-bundle)[ RSS](/packages/metro-markets-feature-flag-bundle/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Build Status](https://github.com/METRO-Markets/feature-flag-bundle/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/METRO-Markets/feature-flag-bundle/actions/workflows/continuous-integration.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/686ea9c85d1eb25bf4c65b99ff08e1c9e2c76534372f47e1315f29aaea0a8696/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c656f6265616c2f66662f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/leobeal/ff/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/2268b42b0a6821696393eea8dbd53c5e35f7bf09c809906a139b3cac9c124a5e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c656f6265616c2f66662f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/leobeal/ff/?branch=main)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Metro Markets FF
================

[](#metro-markets-ff)

Metro Markets FF is a Feature Flag Symfony Bundle. It easily allows you to configure and use your favorite feature flag provider.

Installation
------------

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require metro-markets/feature-flag-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

(Please skip this step if you are using Symfony Flex) Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    MetroMarkets\FFBundle\MetroMarketsFeatureFlagBundle::class => ['all' => true],
];
```

### Step 3: Create the configuration

[](#step-3-create-the-configuration)

```
# config/packages/metro_markets_feature_flag.yaml

metro_markets_feature_flag:
  provider: 'configcat'
  configcat:
    sdk_key: 'PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ' # Get it from ConfigCat Dashboard.
    cache:
      driver: 'cache.app'
      ttl: 60
    logger: 'monolog.logger'
```

How to use it
-------------

[](#how-to-use-it)

After the installation is done you can simply inject the service anywhere and use it as follows:

```
use MetroMarkets\FFBundle\FeatureFlagService;

class AnyService
{
    /** @var FeatureFlagService */
    private $featureFlagService;

    public function __construct(FeatureFlagService $featureFlagService)
    {
        $this->featureFlagService = $featureFlagService;
    }

    protected function someMethod()
    {
        $isEnabled = $this->featureFlagService->isEnabled('isMyAwesomeFeatureEnabled');

        if ($isEnabled){
            doTheNewStuff();
        } else{
            keepTheOld();
        }
    }
}
```

About providers
---------------

[](#about-providers)

Currently, the only supported provider is configCat. Please, refer to the [official PHP SDK](https://github.com/configcat/php-sdk) for more details.

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license. Please for more info refer to the [license](LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1764d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cefab93e89d638ce506e3eea4f9369060251bdf7034f482f70d1b90337f2552?d=identicon)[metro-markets](/maintainers/metro-markets)

---

Top Contributors

[![leobeal](https://avatars.githubusercontent.com/u/12049134?v=4)](https://github.com/leobeal "leobeal (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/metro-markets-feature-flag-bundle/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M192](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

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

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

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)

PHPackages © 2026

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