PHPackages                             purhur/feature-flags - 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. purhur/feature-flags

ActiveLibrary

purhur/feature-flags
====================

This is a basic implementation of feature flags and their diffrent uses

06PHPCI failing

Since Jun 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/PurHur/FeatureFlags)[ Packagist](https://packagist.org/packages/purhur/feature-flags)[ RSS](/packages/purhur-feature-flags/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/b309747eeec4f681d8b710b6d3aeec7648d177cf19954efc48f567f6e4de60c8/68747470733a2f2f636972636c6563692e636f6d2f67682f5075724875722f46656174757265466c6167732f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/PurHur/FeatureFlags/tree/master)

Feature Flags
=============

[](#feature-flags)

This component provides some FeatureFlags classes

Usage
-----

[](#usage)

To see the current working version you should probably look into the tests found here: [FeatureFlagsTest](https://github.com/PurHur/FeatureFlags/blob/master/tests/Unit/FeatureFlagsTest.php)

```
$featureFlags = new \FeatureFlags\FeatureFlags(
    new \FeatureFlags\ArrayFlagConfiguration(array(
        'test_feature' => true,
        'test_indev_feature' => false,
    ))
);
if ($featureFlags->isActive('test_feature')) {
    ...
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

### Community

Maintainers

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

---

Top Contributors

[![PurHur](https://avatars.githubusercontent.com/u/5864315?v=4)](https://github.com/PurHur "PurHur (42 commits)")

### Embed Badge

![Health badge](/badges/purhur-feature-flags/health.svg)

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

PHPackages © 2026

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