Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/frozzare/php-features
- Owner: frozzare
- License: mit
- Created: 2017-09-18T12:56:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T06:40:54.000Z (over 6 years ago)
- Last Synced: 2024-09-29T20:21:18.092Z (about 2 months ago)
- Topics: features, php
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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)