2017 © Pedro Peláez
 

library laravel-flagception

Laravel driver for the bestit/flagception-sdk

image

bestit/laravel-flagception

Laravel driver for the bestit/flagception-sdk

  • Friday, June 29, 2018
  • by bestit
  • Repository
  • 4 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 200 % Grown

The README.md

laravel-flagception

Feature toggle for laravel. Laravel provider for the flagception/flagception-sdk., (*1)

Installation and setup

Install it via composer: ``` bash composer require bestit/laravel-flagception, (*2)

The package will automatically register itself.

If you are using Laravel 5.5 or higher this package will be auto-discovered.
For earlier versions you have to register the service provider in your app.php:

``` php
// config/app.php

'providers' => [
    // ...
    BestIt\LaravelFlagception\FlagceptionServiceProvider::class,
];

The core of this package is the config. To publish it run:, (*3)

``` php php artisan vendor:publish --provider="BestIt\LaravelFlagception\FlagceptionServiceProvider", (*4)


## Basic usage Define a feature in your config file: ``` php // config/flagception.php return [ //... 'features' => [ 'feature_123' => [ 'active' => false, ], ], ];

Inject the FeatureManager where you need it: php class WelcomeController extends Controller { public function index(FeatureManager $featureManager) { if ($featureManager->isActive('feature_123')) { //do something } //... } }, (*5)

The Versions

29/06 2018

dev-master

9999999-dev https://github.com/bestit/laravel-flagception

Laravel driver for the bestit/flagception-sdk

  Sources   Download

MIT

The Requires

 

The Development Requires

by andre.varelmann

laravel feature flags feature toggle flagception bestit