2017 © Pedro Peláez
 

library laravel-swivel

Laravel wrapper for swivel component

image

webkod3r/laravel-swivel

Laravel wrapper for swivel component

  • Tuesday, February 13, 2018
  • by webkod3r
  • Repository
  • 0 Watchers
  • 0 Stars
  • 136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

Laravel Swivel

Latest Version on Packagist ![Software License][ico-license] [![Build Status][ico-scrutinizer-build]][link-build] Coverage Status Quality Score ![Total Downloads][ico-downloads], (*1)

Zumba Swivel is a library that allows PHP applications to manage features to multiple users via buckets. It consists with 10 buckets, allowing the same code have up to 10 different behaviors., (*2)

This package is a bridge between Laravel/Lumen and Swivel. It provides a Facade, and Entity classes to be used in your Laravel application., (*3)

Structure

If you want to make a contribution, please make sure you follow Laravel package structure., (*4)

Install

Via Composer, (*5)

``` bash $ composer require webkod3r/laravel-swivel, (*6)


Rgister the new service provider in your application: ```php $app->register(LaravelSwivel\SwivelServiceProvider::class);

After installing the package you can copy the default configuration and replace it with your own. In order to do that copy the file inside vendor/webkod3r/laravel-swivel/config/swivel.php into your onw project., (*7)

Usage

Calling the app IoC and making your own instance, (*8)

``` php $swivel = app()->make('swivel'); $swivel->returnValue('CoolFeature', 'Active', 'No Active');, (*9)


or, using the shipped `Facade` ``` php use LaravelSwivel\Facades\Swivel; Swivel::returnValue('CoolFeature', 'Active', 'No Active');

Change log

Please see CHANGELOG for more information on what has changed recently., (*10)

Testing

``` bash $ composer test, (*11)


## Contributing Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details. ## Security If you discover any security related issues, please notify and open an issue. ## License The MIT License (MIT). Please see [License File](LICENSE.md) for more information. ## Dcoker usage

docker run --rm -it --volume $(pwd):/var/www/html/ php:7.4-fpm-alpine /bin/ash docker run --rm -it --volume $(pwd):/var/www/html/ php:8.0-fpm-alpine /bin/ash ```, (*12)

The Versions

13/02 2018

dev-master

9999999-dev https://github.com/webkod3r/laravel-swivel

Laravel wrapper for swivel component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel features swivel webkod3r