PHPackages                             matejch/yii2-sidebar-collapsible - 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. matejch/yii2-sidebar-collapsible

ActiveYii2-widget

matejch/yii2-sidebar-collapsible
================================

Add sidebar that can be collapsed to smaller version

1.0.5(3y ago)0240MITPHPPHP &gt;=7.2.0

Since Apr 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Matej-ch/yii2-sidebar-collapsible)[ Packagist](https://packagist.org/packages/matejch/yii2-sidebar-collapsible)[ RSS](/packages/matejch-yii2-sidebar-collapsible/feed)WikiDiscussions main Synced 1mo ago

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

Collapsible sidebar widget
==========================

[](#collapsible-sidebar-widget)

Sidebar widget you can add to your page with your own custom content

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist matejch/yii2-sidebar-collapsible "^1.0.1"

```

or add

```
"matejch/yii2-sidebar-collapsible": "^1.0.1"

```

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

Setup
-----

[](#setup)

---

#### Elements with **\[data-sidebar-hide\]** will be hidden when sidebar is collapsed

[](#elements-with-data-sidebar-hide-will-be-hidden-when-sidebar-is-collapsed)

Example

```
 This text is shown only when sidebar is not collapsed
```

---

#### Elements with **\[data-sidebar-collapsible\]** will update their left padding when is sidebar size has changed

[](#elements-with-data-sidebar-collapsible-will-update-their-left-padding-when-is-sidebar-size-has-changed)

Example

```

```

### Sidebar example with custom content

[](#sidebar-example-with-custom-content)

```

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

1432d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/932003?v=4)[Matej Leban](/maintainers/MatejCh)[@matejch](https://github.com/matejch)

---

Top Contributors

[![Matej-ch](https://avatars.githubusercontent.com/u/12380989?v=4)](https://github.com/Matej-ch "Matej-ch (23 commits)")

---

Tags

collapsecollapsiblesidebaryii2yii2-widgetyii2extensionwidgetsidebarcollapsible

### Embed Badge

![Health badge](/badges/matejch-yii2-sidebar-collapsible/health.svg)

```
[![Health](https://phpackages.com/badges/matejch-yii2-sidebar-collapsible/health.svg)](https://phpackages.com/packages/matejch-yii2-sidebar-collapsible)
```

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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