PHPackages                             webkod3r/laravel-swivel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webkod3r/laravel-swivel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webkod3r/laravel-swivel
=======================

Laravel wrapper for swivel component

v2.1.1(2y ago)31.6k↓44.4%MITPHPPHP &gt;=7.3CI failing

Since Apr 5Pushed 2y agoCompare

[ Source](https://github.com/webkod3r/laravel-swivel)[ Packagist](https://packagist.org/packages/webkod3r/laravel-swivel)[ Docs](https://github.com/webkod3r/laravel-swivel)[ RSS](/packages/webkod3r-laravel-swivel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

Laravel Swivel
==============

[](#laravel-swivel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/35c969bde65988aa97ab3b2d92059ca525a1663ea7b445877e5b34e73f8ab34d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626b6f6433722f6c61726176656c2d73776976656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webkod3r/laravel-swivel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2bf1407345cf4338730c62b7969385b4b252c296a645893f1fde2c647608ccde/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765626b6f6433722f6c61726176656c2d73776976656c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/webkod3r/laravel-swivel/badges/build.png?b=master)[![Coverage Status](https://camo.githubusercontent.com/362c0e298c0ef743cb1570a4ff97632bee096be865da2cca5a43de474be554f1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765626b6f6433722f6c61726176656c2d73776976656c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/webkod3r/laravel-swivel/code-structure)[![Quality Score](https://camo.githubusercontent.com/fb7f3fd61cc77e9002efa4f7f8f24db3d47af2ff756fef65adff6c247053e5d2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7765626b6f6433722f6c61726176656c2d73776976656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/webkod3r/laravel-swivel)[![Total Downloads](https://camo.githubusercontent.com/7713b2f948989be8fd86d8e1e34f475638fd50a25aaef2a0a4874393fd23e18f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626b6f6433722f6c61726176656c2d73776976656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webkod3r/laravel-swivel)

[Zumba Swivel](https://github.com/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
---------

[](#structure)

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

Install
-------

[](#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
-----

[](#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
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please notify and open an issue.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Dcoker usage
------------

[](#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

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~326 days

Total

5

Last Release

931d ago

Major Versions

v1.1.0 → v2.0.02022-04-27

PHP version history (3 changes)v1.0.1PHP ~5.6|~7.0.0

v2.0.0PHP ^7.2

v2.1.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/17b5f23b6a394ff93fa48fe26e616dc87116a567b6ea9c741c324621f83c5154?d=identicon)[webkod3r](/maintainers/webkod3r)

---

Top Contributors

[![webkod3r](https://avatars.githubusercontent.com/u/3235376?v=4)](https://github.com/webkod3r "webkod3r (49 commits)")

---

Tags

behaviorcomponentfeature-flagslaravellumenpluginswivellaravellumenBehaviorcomponentfeature-flagsfeaturesswivel

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/webkod3r-laravel-swivel/health.svg)

```
[![Health](https://phpackages.com/badges/webkod3r-laravel-swivel/health.svg)](https://phpackages.com/packages/webkod3r-laravel-swivel)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
