https://github.com/frozzare/php-features
Simple package for feature flagging interface/implementation
https://github.com/frozzare/php-features
features php
Last synced: 2 months 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T06:40:54.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T21:48:27.871Z (about 1 year 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 [](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)