PHPackages                             dhluther/yii-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. dhluther/yii-swivel

ActiveYii-extension[Utility &amp; Helpers](/categories/utility)

dhluther/yii-swivel
===================

A Yii plugin to provide easy access and integration with zumba/swivel

1.0.2(4y ago)3137MITPHPPHP ^5.4|^7.0|~8.0.0|~8.1.0

Since Mar 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DanaLuther/yii-swivel)[ Packagist](https://packagist.org/packages/dhluther/yii-swivel)[ Docs](https://github.com/DanaLuther/yii-swivel)[ RSS](/packages/dhluther-yii-swivel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Yii Extension for Zumba ***Swivel***
====================================

[](#yii-extension-for-zumba-swivel)

This plugin provides the necessary elements for using Swivel in a Yii 1.1+ Application.

This plugin is based on the zumba/swivel-cake plugin.

### Configuration for Yii Component:

[](#configuration-for-yii-component)

By default, the component is assumed to be under the /protected/vendors/ directory, if your composer.json is under the protected folder. If you need to change that location, simply update the extensionAlias in the configuration array.

```
 'swivel' => [
 	'class'=>'SwivelComponent'
 ],
```

```
 'swivel' => [
	'class'=>'SwivelComponent',
 	'extensionAlias'=>'application.extensions.swivel',
 ],
```

### Access from the application

[](#access-from-the-application)

```
// If the user has the feature behavior bucket enabled, use the testFeature.New.Something behavior,
// else use the default
Yii::app()->swivel->forFeature( 'testFeature' )
	->addBehavior('New.Something', [$this,'doSomethingB'], $args)
	->defaultBehavior([$this, 'doSomethingA'], $args )
	->execute();

// If the user has the feature behavior bucket enabled, use the first callable,
// else use the second callable (default)
Yii::app()->swivel->invoke('testFeature.New.Something', [$this,'doSomethingB'],[$this, 'doSomethingA']);
```

Make sure that your bootstrap file is set to properly include the composer autoloader. This extension assumes that your vendor directory is under the protected folder, so if that is not the case, please make sure you adjust the paths accordingly in the require and configuration options.

In the index.php bootstrap:

```
require(__DIR__ . '/protected/vendor/autoload.php');
```

#### The ***Swivel*** Libraries

[](#the-swivel-libraries)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

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

Total

3

Last Release

1608d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4

1.0.2PHP ^5.4|^7.0|~8.0.0|~8.1.0

### Community

Maintainers

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

---

Top Contributors

[![DanaLuther](https://avatars.githubusercontent.com/u/285624?v=4)](https://github.com/DanaLuther "DanaLuther (21 commits)")

---

Tags

helperextensionBehavioryiicomponentswivel

### Embed Badge

![Health badge](/badges/dhluther-yii-swivel/health.svg)

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

###  Alternatives

[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)

PHPackages © 2026

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