Coder Social home page Coder Social logo

laravel-swivel's Introduction

Laravel Swivel

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.

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

Structure

If you want to make a contribution, please make sure you follow Laravel package structure.

Install

Via Composer

$ composer require webkod3r/laravel-swivel

Rgister the new service provider in your application:

$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.

Usage

Calling the app IoC and making your own instance

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

or, using the shipped Facade

use LaravelSwivel\Facades\Swivel;

Swivel::returnValue('CoolFeature', 'Active', 'No Active');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT 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 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

laravel-swivel's People

Contributors

webkod3r avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.