PHPackages                             da-wen/feature-toggle - 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. da-wen/feature-toggle

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

da-wen/feature-toggle
=====================

Component for feature toggling

1.0.0(8y ago)019.4k↓50%MITPHPPHP &gt;=5.5.0

Since Jul 2Pushed 8y agoCompare

[ Source](https://github.com/da-wen/feature-toggle)[ Packagist](https://packagist.org/packages/da-wen/feature-toggle)[ Docs](http://www.github.com/da-wen/feature-toggle)[ RSS](/packages/da-wen-feature-toggle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Feature Toggle
==============

[](#feature-toggle)

[![Build Status](https://camo.githubusercontent.com/a43bb0662bb1fc301c4de6e098755b49b8f20995664060183e8f50d8e790e789/68747470733a2f2f7472617669732d63692e6f72672f64612d77656e2f666561747572652d746f67676c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/da-wen/feature-toggle)

This component is design to create a service that allowes you, to check if a feature is enabled or not. Currently there is only a config handler, for holding features, but this component is designed to be flexible.

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

[](#how-to-use)

Please take a look into functional tests. There is an example how to create an instance.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

3240d ago

### Community

Maintainers

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

---

Top Contributors

[![da-wen](https://avatars.githubusercontent.com/u/3296502?v=4)](https://github.com/da-wen "da-wen (5 commits)")

---

Tags

phpfeaturecomponentfeature toggletoggle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/da-wen-feature-toggle/health.svg)

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

###  Alternatives

[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[flagception/flagception-bundle

Feature toggle bundle on steroids.

283.8M](/packages/flagception-flagception-bundle)[zumba/swivel

Strategy driven feature toggles

209135.7k5](/packages/zumba-swivel)

PHPackages © 2026

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