PHPackages                             vaneavasco/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. vaneavasco/toggle

ActiveLibrary

vaneavasco/toggle
=================

Simple feature toggles package

16PHP

Since Oct 10Pushed 8y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Simple feature toggles
======================

[](#simple-feature-toggles)

[![Build status](https://camo.githubusercontent.com/7812274ffc3fc2bd74eb1f9b0c1434e16574d387507fd0187629098782aa9f78/68747470733a2f2f7472617669732d63692e6f72672f76616e6561766173636f2f746f67676c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vaneavasco/toggle)

Example

```
$featureConfig   = require_once 'config.php';
$featureToggle   = FeatureToggle::build($featureConfig);
$featuresToCheck = ['myFeature', 'myOtherFeature'];

foreach ($featuresToCheck as $feature) {
    if ($featureToggle->isEnabled($feature)) {
        echo "$feature is enabled \n";
    } else {
        echo "$feature is disabled \n";
    }
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![vaneavasco](https://avatars.githubusercontent.com/u/2719705?v=4)](https://github.com/vaneavasco "vaneavasco (13 commits)")

---

Tags

feature-flagsfeature-toggle

### Embed Badge

![Health badge](/badges/vaneavasco-toggle/health.svg)

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

PHPackages © 2026

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