PHPackages                             dmk-design/yii2-offcanvas-b4 - 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. dmk-design/yii2-offcanvas-b4

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

dmk-design/yii2-offcanvas-b4
============================

Extension for adding collapsible Sidebar to Yii2 project with Ajax Content

064PHP

Since Apr 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dmk-design/yii2-offcanvas-b4)[ Packagist](https://packagist.org/packages/dmk-design/yii2-offcanvas-b4)[ RSS](/packages/dmk-design-yii2-offcanvas-b4/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Collapsible Sidebar using BS4
=============================

[](#collapsible-sidebar-using-bs4)

Extension for adding collapsible Sidebar to Yii2 project with Ajax 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 dmk-design/yii2-offcanvas-b4 "*"

```

or add

```
"dmk-design/yii2-offcanvas-b4": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
```

```javascript

    let sidebar = new OffCanvas('.bs-canvas-right');
    //if you want the backdrop to open and close
    sidebar.insertBackdrop()
    sidebar.setTitle("My Title");
    sidebar.setContent("My Content")
    sidebar.setFooter("Buttons?")
    sidebar.show();
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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/afe55727f4802c4ef9935c4bed76320863b9e1a960346cf1dc1a048c2f45f16c?d=identicon)[dmkdesign](/maintainers/dmkdesign)

---

Top Contributors

[![dmkdesign](https://avatars.githubusercontent.com/u/755477?v=4)](https://github.com/dmkdesign "dmkdesign (50 commits)")

### Embed Badge

![Health badge](/badges/dmk-design-yii2-offcanvas-b4/health.svg)

```
[![Health](https://phpackages.com/badges/dmk-design-yii2-offcanvas-b4/health.svg)](https://phpackages.com/packages/dmk-design-yii2-offcanvas-b4)
```

PHPackages © 2026

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