PHPackages                             mrferos/mrf-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. mrferos/mrf-swivel

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

mrferos/mrf-swivel
==================

ZF2 module for swivel

1.0.2(10y ago)316MITPHP

Since Sep 20Pushed 10y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/30305b76dad523b0678caf85584244fc1e0d8f2d241ad245a3725c2d1727a78a/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d726665726f732f6d72662d73776976656c2e737667)](https://camo.githubusercontent.com/30305b76dad523b0678caf85584244fc1e0d8f2d241ad245a3725c2d1727a78a/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d726665726f732f6d72662d73776976656c2e737667)[![https://scrutinizer-ci.com/g/mrferos/mrf-swivel/](https://camo.githubusercontent.com/17686c505443aab66f8b257c1eb4521f8c849e2251672cddca0269455f13d897/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d726665726f732f6d72662d73776976656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/17686c505443aab66f8b257c1eb4521f8c849e2251672cddca0269455f13d897/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d726665726f732f6d72662d73776976656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)

MrfSwivel
=========

[](#mrfswivel)

Was in need of a feature library that would work easily enough with ZF2, thankfully the guys over at Zumba made [Swivel](https://github.com/zumba/swivel) and all that left me to do was whip up a ZF2 module!

Installation
------------

[](#installation)

1. Grab it via composer:

```
composer require mrferos/mrf-swivel
```

2. Copy the configuration file:

```
cp vendor/mrferos/MrfSwivel/config/swivel.config.php.dist config/autoload/swivel.config.php
```

3. Add your features!

Getting the Swivel Manager
--------------------------

[](#getting-the-swivel-manager)

### Via the Service Locator

[](#via-the-service-locator)

```
$swivel = $serviceLocator->get('MrfSwivel\Swivel');
```

### Via setter injection

[](#via-setter-injection)

In the class you're interested in using it, implement the interface `MrfSwivel\Service\SwivelAwareInterface` which will enforce the need for the `setSwivel` and `getSwivel` methods. For convenience I've include a trait with both methods `MrfSwivel\Service\SwivelAwareInterfaceTrait`

Setting your user to a specific bucket
--------------------------------------

[](#setting-your-user-to-a-specific-bucket)

If you want to set the user to a specific bucket, in your module bootstrap do the following:

```
$swivelConfig = $serviceLocator->get('MrfSwivel\SwivelConfig');
$swivelConfig->setBucketIndex(3); // Can be from session/cookie/etc!
```

Just be sure to place this *before* anything that might call Swivel, once the Manager has been pulled the user's bucket will be set (in lieu or a set bucket, one shall be randomly assigned).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~0 days

Total

3

Last Release

3893d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7af41bdd34c88e63ccca096fa4f461a24650f13161920be9a28de13068fbe0a1?d=identicon)[mrferos](/maintainers/mrferos)

---

Top Contributors

[![mrferos](https://avatars.githubusercontent.com/u/69551?v=4)](https://github.com/mrferos "mrferos (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrferos-mrf-swivel/health.svg)

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

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[bitweb/zf2-cron-module

BitWeb ZF2 module for cron.

1341.6k](/packages/bitweb-zf2-cron-module)

PHPackages © 2026

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