2017 © Pedro PelĂĄez
 

symfony-bundle time-window-bundle

Symfony bundle for time based feature flags

image

mablae/time-window-bundle

Symfony bundle for time based feature flags

  • Friday, May 27, 2016
  • by mablae
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,802 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

TimeWindowBundle

This bundle implements implements basically daytime based feature flags., (*1)

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, (*2)

Feel free to contribute or leave feedback in the issues. <3, (*3)

Installation

Step 1: Install DatetimepickerBundle

php composer.phar require mablae/datetimepicker-bundle

Step 2: Enable the bundle

``` php <?php // app/AppKernel.php, (*4)

public function registerBundles() { $bundles = array( // ... new Mablae\TimeWindowBundle\MablaeTimeWindowBundle(), ); }, (*5)



### Step 3: Configure your named time windows: ``` yml # app/config/config.yml mablae_time_window_: enabled: ~ time_windows: in_the_morning: - { startTime : '06:00' , endTime: '08:00' }

At the moment there is no proper overlapping checks or sorting. The timewindow must be defined in correct order. The first timewindow that returns active wins., (*6)

Step 4: Use the voter service to ask, if a time-window is active

``` php, (*7)

<?php /* ... */, (*8)

$timeWindowService = $this->get('mablae_time_window.service');, (*9)

$itsInTheMorning = $timeWindowService->isTimeWindowActive('in_the_morning'), (*10)

```, (*11)

The Versions

27/05 2016

dev-master

9999999-dev

Symfony bundle for time based feature flags

  Sources   Download

MIT

The Requires

 

by Malte BlÀttermann

bundle symfony time checker feature flag flag voter

27/05 2016

v0.1.5

0.1.5.0

Symfony bundle for time based feature flags

  Sources   Download

MIT

The Requires

 

by Malte BlÀttermann

bundle symfony time checker feature flag flag voter

27/05 2016

v0.1.4

0.1.4.0

Symfony bundle for time based feature flags

  Sources   Download

MIT

The Requires

 

by Malte BlÀttermann

bundle symfony time checker feature flag flag voter

29/04 2016

0.1.3

0.1.3.0

Symfony bundle for time based feature flags

  Sources   Download

MIT

The Requires

 

by Malte BlÀttermann

bundle symfony time checker feature flag flag voter

29/04 2016

0.1.1

0.1.1.0

Symfony bundle for time based feature flags

  Sources   Download

MIT

The Requires

 

by Malte BlÀttermann

bundle symfony time checker feature flag flag voter