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

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

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')

```