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

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

datasift/feature
================

Library tool for managing feature flags

06PHP

Since May 18Pushed 10y agoCompare

[ Source](https://github.com/datasift/php-lib-feature)[ Packagist](https://packagist.org/packages/datasift/feature)[ RSS](/packages/datasift-feature/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#feature-flags)

[![Latest Version on Packagist](https://camo.githubusercontent.com/89712ede816c7fb2b7b06d968dd4f2efd378a1debb47829a54f5797f24368dd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64617461736966742f666561747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datasift/feature)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4fa879d3b287e299fb277e9baa1ee5e2c6ab8204885e508923e1722cec8ea757/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64617461736966742f7068702d6c69622d666561747572652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/datasift/php-lib-feature)[![Total Downloads](https://camo.githubusercontent.com/2234a40ae43d7f048ac11a91c373117e1300ce98d0ab08970c693945e771a19b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64617461736966742f666561747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datasift/feature)

Simple PHP Library to manager feature flags

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `datasift/feature`.

```
"require": {
	"datasift/feature": "1.*"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Drivers
-------

[](#drivers)

- Array - Simple array of key value pairs.
- File - JSON file containing key value pairs.
- Consul - Using consul key value store.
- Redis - Using redis key value store.

Usage
-----

[](#usage)

```
$feature = new FeatureManager([
    'driver' => 'file',
    'file' => ''
]);
```

```
$feature = new FeatureManager([
    'driver' => 'array',
    'data' => [
        'flag1' => true,
        'flag2' => false
    ]
]);
```

```
$feature = new FeatureManager([
    'driver' => 'consul',
    'host' => '127.0.0.1',
    'port' => 8500
]);
```

Testing
-------

[](#testing)

To test the library itself, run the tests:

```
composer test

```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [nathanmac](https://github.com/nathanmac)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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/e938d7304b579f1f6ba7895dcee6b7b95eeb7f7aed77be6e4bcce777eb9e0245?d=identicon)[nathanmac](/maintainers/nathanmac)

---

Top Contributors

[![nathanmac](https://avatars.githubusercontent.com/u/3205902?v=4)](https://github.com/nathanmac "nathanmac (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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