PHPackages                             derekisbusy/yii2-superfish - 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. derekisbusy/yii2-superfish

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

derekisbusy/yii2-superfish
==========================

Superfish assets for Yii2 projects

010JavaScript

Since Jun 23Pushed 7y agoCompare

[ Source](https://github.com/derekisbusy/yii2-superfish)[ Packagist](https://packagist.org/packages/derekisbusy/yii2-superfish)[ RSS](/packages/derekisbusy-yii2-superfish/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Superfish
==============

[](#yii2-superfish)

Superfish assets for Yii2 projects

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist derekisbusy/yii2-superfish:dev-master

```

or add

```
"derekisbusy/yii2-superfish": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it by adding it to your view :

```
use \derekisbusy\superfish\SuperfishAsset;

SuperfishAsset::register($this);
```

or by adding it to another assets dependencies list :

```
  public $depends = [
    'derekisbusy\superfish\SuperfishAsset'
  ];
```

Then use superfish in your HTML :

```

     Menu

     Home

        Menu Item 1

              Sub Menu Item 1
              Sub Menu Item 2

        Menu Item 2
        Menu Item 3

  jQuery(document).ready(function() {
    jQuery('ul.sf-menu').superfish();
  });

```

Resources
---------

[](#resources)

- [Superfish examples](https://superfish.joelbirch.design/examples/)
- [Yii2 assets](https://www.yiiframework.com/doc/guide/2.0/en/structure-assets)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b869af2c6981c02841e47e2e56a8753f51f3cc0594f6e2ac8742297cb9a828bc?d=identicon)[derekisbusy](/maintainers/derekisbusy)

---

Top Contributors

[![derekisbusy](https://avatars.githubusercontent.com/u/5118781?v=4)](https://github.com/derekisbusy "derekisbusy (6 commits)")

### Embed Badge

![Health badge](/badges/derekisbusy-yii2-superfish/health.svg)

```
[![Health](https://phpackages.com/badges/derekisbusy-yii2-superfish/health.svg)](https://phpackages.com/packages/derekisbusy-yii2-superfish)
```

###  Alternatives

[mglaman/composer-drupal-lenient

1328.1M17](/packages/mglaman-composer-drupal-lenient)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.4k](/packages/bvdputte-kirby-fingerprint)

PHPackages © 2026

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