PHPackages                             em411/sylius-feature-flag-bundle-plugin - 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. em411/sylius-feature-flag-bundle-plugin

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

em411/sylius-feature-flag-bundle-plugin
=======================================

Manage em411/feature-flag-bundle feature flags from the Sylius admin panel.

0.2.2(1mo ago)01.3k↓88.9%MITPHPPHP &gt;=7.4CI failing

Since May 22Pushed 1mo agoCompare

[ Source](https://github.com/em411/sylius-feature-flag-bundle-plugin)[ Packagist](https://packagist.org/packages/em411/sylius-feature-flag-bundle-plugin)[ RSS](/packages/em411-sylius-feature-flag-bundle-plugin/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (18)Versions (6)Used By (0)

Sylius FeatureFlag Bundle Plugin
================================

[](#sylius-featureflag-bundle-plugin)

[![CI](https://github.com/em411/sylius-feature-flag-bundle-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/em411/sylius-feature-flag-bundle-plugin/actions/workflows/ci.yml)[![License: MIT](https://camo.githubusercontent.com/482fb9959451aeaffdb46864f21d625ccff7e79ad90e000b0a8dc40d2a9c4446/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f656d3431312f73796c6975732d666561747572652d666c61672d62756e646c652d706c7567696e)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/5b4da5279628dd115c26f5ebfa37e23b257782c98e702cfebe6e2cc228ec1d64/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f656d3431312f73796c6975732d666561747572652d666c61672d62756e646c652d706c7567696e3f736f72743d73656d766572)](https://github.com/em411/sylius-feature-flag-bundle-plugin/releases)

Manage [`em411/feature-flag-bundle`](https://github.com/em411/feature-flag-bundle)feature flags from the **Sylius admin panel**.

Tested on **PHP 7.4 – 8.1** with **Sylius 1.8+** on **Symfony 4.4**.

Feature flags become a Sylius resource: an admin can create, edit and delete them in a grid. Each flag has a `code`, an `enabled` toggle, an optional `value`and a `description`. A Doctrine-backed provider feeds the flags into the feature flag chain at a high priority, so a database flag overrides a code-defined feature (`@AsFeature`) of the same code.

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

[](#installation)

```
composer require em411/sylius-feature-flag-bundle-plugin
```

### 1. Register the bundles

[](#1-register-the-bundles)

```
// config/bundles.php
return [
    // ...
    Ajgarlag\FeatureFlagBundle\FeatureFlagBundle::class => ['all' => true],
    Em411\SyliusFeatureFlagPlugin\Em411SyliusFeatureFlagPlugin::class => ['all' => true],
];
```

### 2. Import the admin routing

[](#2-import-the-admin-routing)

```
# config/routes/em411_sylius_feature_flag.yaml
em411_sylius_feature_flag_admin:
    resource: "@Em411SyliusFeatureFlagPlugin/Resources/config/routing/admin.yaml"
    prefix: /admin
```

### 3. Create the database table

[](#3-create-the-database-table)

The plugin ships the Doctrine mapping; generate and run a migration in your app:

```
bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
```

### 4. Clear the cache

[](#4-clear-the-cache)

After installing or upgrading, clear the Symfony cache so the bundle's translations and grid config are picked up:

```
bin/console cache:clear
```

### 5. (BitBag ACL plugin only) grant the permission

[](#5-bitbag-acl-plugin-only-grant-the-permission)

If your project uses [BitBagCommerce/SyliusAclPlugin](https://github.com/BitBagCommerce/SyliusAclPlugin)(or a fork of it), open **Configuration → Administrators → Roles**, edit the role that should manage feature flags, and tick the **Feature flag** entries. Without this step the grid renders without **Edit** / **Delete** buttons because the ACL plugin filters out actions for routes the role hasn't been granted.

Usage
-----

[](#usage)

Open **Configuration → Feature flags** in the Sylius admin to manage flags.

Check a flag anywhere a `FeatureCheckerInterface` is available:

```
$featureChecker->isEnabled('my_flag');   // plain on/off flags
$featureChecker->getValue('my_flag');    // value-carrying flags
```

### Enabling a feature for a group of users

[](#enabling-a-feature-for-a-group-of-users)

The plugin is intentionally context-unaware. To target a group, store the group identifiers in the flag's **value** and check membership in your application — for example, a flag whose value is a comma-separated list of Sylius customer group codes:

```
$allowed = $featureChecker->getValue('beta_checkout');        // "wholesale,vip" or false
$groups  = false === $allowed ? [] : explode(',', $allowed);
$enabled = \in_array($customer->getGroup()->getCode(), $groups, true);
```

Configuration
-------------

[](#configuration)

```
# config/packages/em411_sylius_feature_flag_plugin.yaml
em411_sylius_feature_flag_plugin:
    provider_priority: 100   # priority of the DB provider in the feature flag chain
```

License
-------

[](#license)

MIT.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance88

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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

Every ~1 days

Total

5

Last Release

59d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7682404?v=4)[Emil](/maintainers/em411)[@em411](https://github.com/em411)

---

Top Contributors

[![em411](https://avatars.githubusercontent.com/u/7682404?v=4)](https://github.com/em411 "em411 (23 commits)")

---

Tags

feature-flagfeature-flagsfeature-togglephpsyliussylius-pluginsymfonysymfony-bundlesyliusfeatureflagtogglesylius-pluginfeature flag

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/em411-sylius-feature-flag-bundle-plugin/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M754](/packages/sylius-sylius)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[oro/platform

Business Application Platform (BAP)

645143.5k116](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k64](/packages/open-dxp-opendxp)

PHPackages © 2026

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