Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frozzare/php-features

Simple package for feature flagging interface/implementation
https://github.com/frozzare/php-features

features php

Last synced: about 1 month ago
JSON representation

Simple package for feature flagging interface/implementation

Awesome Lists containing this project

README

        

# features [![Build Status](https://travis-ci.org/frozzare/php-features.svg?branch=master)](https://travis-ci.org/frozzare/php-features)

Simple package for feature flagging interface/implementation.

## Installation

```
$ composer require frozzare/features
```

## Example

```php
features([
'log' => false
]);

...

features()->enable('log');

...

if (features()->enabled('log')) {
...
}

...

features()->disable('log');
```

## License

MIT © [Fredrik Forsmo](https://github.com/frozzare)