PHPackages                             opengento/feature-toggle2 - 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. opengento/feature-toggle2

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

opengento/feature-toggle2
=========================

4846PHP

Since Jun 25Pushed 9y ago21 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Feature Toggle module for Magento 2
===================================

[](#feature-toggle-module-for-magento-2)

*by Opengento*

[![Logo Opengento Feature Toggle for Magento 2](https://camo.githubusercontent.com/077cfab174cfdc7aab230df5fedb6c0a0a48ccfd7d450b4e74c300c34a05ae99/68747470733a2f2f6f70656e67656e746f2e6769746875622e696f2f666561747572652d746f67676c65322f6c6f676f2e706e67)](https://camo.githubusercontent.com/077cfab174cfdc7aab230df5fedb6c0a0a48ccfd7d450b4e74c300c34a05ae99/68747470733a2f2f6f70656e67656e746f2e6769746875622e696f2f666561747572652d746f67676c65322f6c6f676f2e706e67)

This module allows you to use the Feature Flags, or sometimes called "Feature Toggle" functionality.

To use a toggle, you just have to call the helper, like this:

```
/* @var $toggleHelper \Opengento\FeatureToggle2\Helper\Toggle */
if ($toggleHelper->isToggleActive('my-feature-flag')) {
    // Toggle activated
} else {
    // Toogle inactive
}
```

XML sample
----------

[](#xml-sample)

The filename is `toggles.xml`, and you have to put it in the `etc/` directory of your module.

```

        My Feature Flag
        This feature flag is a sample toggle.

```

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](https://github.com/opengento/feature-toggle2/blob/master/CONTRIBUTING.md).

Maintainers
-----------

[](#maintainers)

See [Contributors list](https://github.com/opengento/feature-toggle2/graphs/contributors).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/5b4c69244b1708a52abc673bf25f8cb16734dfa268adaaff787ae715df8a2159?d=identicon)[ph2m\_vma](/maintainers/ph2m_vma)

---

Top Contributors

[![jacquesbh](https://avatars.githubusercontent.com/u/858611?v=4)](https://github.com/jacquesbh "jacquesbh (6 commits)")[![VincentMarmiesse](https://avatars.githubusercontent.com/u/1949412?v=4)](https://github.com/VincentMarmiesse "VincentMarmiesse (4 commits)")

### Embed Badge

![Health badge](/badges/opengento-feature-toggle2/health.svg)

```
[![Health](https://phpackages.com/badges/opengento-feature-toggle2/health.svg)](https://phpackages.com/packages/opengento-feature-toggle2)
```

###  Alternatives

[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

645.9M39](/packages/symfony-ux-autocomplete)

PHPackages © 2026

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