https://github.com/mablae/time-window-bundle
A symfony feature flag bundle for time based feature flags
https://github.com/mablae/time-window-bundle
Last synced: 4 months ago
JSON representation
A symfony feature flag bundle for time based feature flags
- Host: GitHub
- URL: https://github.com/mablae/time-window-bundle
- Owner: mablae
- License: mit
- Created: 2016-04-29T11:27:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-27T01:55:25.000Z (about 10 years ago)
- Last Synced: 2025-10-26T01:31:58.874Z (8 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TimeWindowBundle
This bundle implements implements basically daytime based feature flags.
**NOTICE** This bundle is the result of quickly decoupling some logic we already had duplicated in serveral places
of an legacy codebase. If you are looking for a *full featured* Feature Toggle Bundle for Symfony you are probably better using
https://github.com/qandidate-labs/qandidate-toggle-bundle
Feel free to contribute or leave feedback in the issues. <3
##Installation
### Step 1: Install DatetimepickerBundle
```bash
php composer.phar require mablae/datetimepicker-bundle
```
### Step 2: Enable the bundle
``` php
get('mablae_time_window.service');
$itsInTheMorning = $timeWindowService->isTimeWindowActive('in_the_morning')
```