2017 © Pedro Peláez
 

silverstripe-module silverstripe-flags

Feature flag toggling for SilverStripe.

image

jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  • Tuesday, December 19, 2017
  • by jacobbuck
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,825 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

silverstripe-flags

Feature flag toggling for SilverStripe., (*1)

Usage

Add your flags to your website or module config:, (*2)

JacobBuck\Flags\Flag:
  flags:
    - Name: coolFeature
      Description: "Enable website to use cool feature."
      Enabled: true
    - Name: debugAnotherFeature
      Description: "For developers to debug another feature."
    - Name: experimentalThing
      Description: "Enables experimental thing."

You can then write code to be conditional based on if a flag is enabled:, (*3)

    use JacobBuck\Flags\Flag;

    ...

    if (Flag::isEnabled('coolFeature')) {
        // Do something cool
    }
    <% if FlagEnabled("experimentalThing") %>
        <%-- Experimental thing template --%>
    <% end_if %>

Flags can be toggled in the CMS:, (*4)

screenshot, (*5)

screenshot, (*6)

You can also see the history of changes to a flag:, (*7)

screenshot, (*8)

Requirements

  • Silverstripe 4+

Installation

The recommended way to install is through Composer:, (*9)

composer require jacobbuck/silverstripe-flags

The Versions

19/12 2017

dev-master

9999999-dev https://github.com/jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

19/12 2017

1.2.0

1.2.0.0 https://github.com/jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

27/06 2017

1.1.0

1.1.0.0 https://github.com/jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

03/06 2017

1.0.3

1.0.3.0 https://github.com/jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

03/06 2017

1.0.2

1.0.2.0 https://github.com/jacobbuck/silverstripe-flags

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

21/05 2017

1.0.1

1.0.1.0

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features

19/05 2017

1.0.0

1.0.0.0

Feature flag toggling for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Jacob Buck

switch silverstripe flags feature toggle flag features