2017 © Pedro Peláez
 

library laravel-feature-toggle

Laravel 5 package wrapping joshuaestes/feature-toggle

image

infi-nl/laravel-feature-toggle

Laravel 5 package wrapping joshuaestes/feature-toggle

  • Wednesday, September 16, 2015
  • by edeckers
  • Repository
  • 8 Watchers
  • 15 Stars
  • 3,479 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel Feature Toggle

Travis CI Total Downloads License, (*1)

Laravel wrapper for JoshuaEstes/FeatureToggle, a library which allows you to easily add and modify various features to your code while in development., (*2)

Installation

Add the following line to the require section of composer.json:, (*3)

{
    "require": {
        "infi-nl/laravel-feature-toggle": "dev-master"
    }
}

Setup

  1. Add 'InfiNl\LaravelFeatureToggle\LaravelFeatureToggleServiceProvider', to the service provider list in app/config/app.php.
  2. Add 'FeatureContainer' => 'InfiNl\LaravelFeatureToggle\Facades\FeatureContainerFacade', to the list of aliases in app/config/app.php.

Configuration

Create the file /config/packages/infi-nl/laravel-feature-toggle/feature.php and modify it to suit your needs., (*4)

The configuration file must be formatted like this:, (*5)

<?php
return array(
    "featureName1" => array(
        "enabled"      => true
    ),
    ...
    "featureNameN" => array(
        "enabled"      => false
    )
);

Usage

An instance of JoshuaEstes\Component\FeatureToggle\FeatureContainer initialized with features defined in the package config is available through the Facade FeatureContainerFacade, the alias FeatureContainer or through the laravel-feature-toggle service in the IOC container., (*6)

Testing feature availability

FeatureContainer::hasFeature("featureName");

Testing feature enabled

$feature = FeatureContainer::getFeature("featureName");

$feature->isEnabled();

More examples

The examples above display only very basic usage of the library, for more advanced examples and detailed information on the library check the JoshuaEstes/FeatureToggle repository., (*7)

The Versions

16/09 2015

dev-master

9999999-dev

Laravel 5 package wrapping joshuaestes/feature-toggle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ely Deckers

laravel feature toggle

16/07 2015

dev-laravel-4.0

dev-laravel-4.0

Laravel 4 package wrapping joshuaestes/feature-toggle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ely Deckers

laravel feature toggle

16/07 2015

dev-laravel-5.0

dev-laravel-5.0

Laravel 5 package wrapping joshuaestes/feature-toggle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ely Deckers

laravel feature toggle

29/07 2014

1.0.1

1.0.1.0

Laravel 4 package wrapping joshuaestes/feature-toggle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ely Deckers

laravel feature toggle