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

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

derekisbusy/yii2-panel
======================

Yii2 Bootstrap Panel

37.5k1[1 issues](https://github.com/derekisbusy/yii2-panel/issues)JavaScript

Since Jun 21Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-panel
==========

[](#yii2-panel)

[![Packagist](https://camo.githubusercontent.com/a4b7a1d8377c4252b62962b12857454a352b488c7f58770dcbcadcffaf57247b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e737667)](https://github.com/derekisbusy/yii2-panel/blob/master/LICENSE.md)[![Packagist](https://camo.githubusercontent.com/741ea6c9b940a52996891f0203bbab450011a084ac2333e394c05b0e129746cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646572656b6973627573792f796969322d70616e656c2e737667)](https://packagist.org/packages/derekisbusy/yii2-panel)

Collapsable Bootstrap panel widget.

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

[](#installation)

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

Either run

```
$ composer require derekisbusy/yii2-panel "dev-master"

```

or add

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

```

to the `require` section of your `composer.json` file then run composer update.

Options
-------

[](#options)

- **title** title displayed in the head section of the panel
- **content** content displayed in the body section of the panel. Only use if using widget() method.
- **footer** content displayed in the footer section of the panel.
- **type** style to be applied to the panel.

- info
- default
- danger
- primary
- success

- **collapsable** whether the panel is collapsable.
- **collapse** whether or not the panel is collapsed.
- **widget** whether or not to include javascript. Can be used to disable javascript if using as style element only.

Examples
--------

[](#examples)

### Basic Example

[](#basic-example)

```
use derekisbusy\panel\PanelWidget;
echo PanelWidget::widget([
    'collapse'=>true,
    'title'=>'My Panel',
    'content'=>'...',
    'footer'=>'footer content'
    ])
]);
```

### Style Only

[](#style-only)

If you only need to create HTML for bootstrap panel and don't need any js functionality set widget to false.

```
use derekisbusy\panel\PanelWidget;

echo PanelWidget::begin([
    'title'=>'My Panel',
    'widget'=>false, // no js included (ie. style only)
    'footer'=>'footer content'
]);

// the body

PanelWidget::end();
```

### Example with Form Widget

[](#example-with-form-widget)

```
use derekisbusy\panel\PanelWidget;

echo PanelWidget::begin([
    'title'=>$title,
    'widget'=>false,
    'footer'=>Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'])
]);

// the form

PanelWidget::end();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

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 (12 commits)")

---

Tags

bootstrap-panelpanelwidgetyii2-panel

### Embed Badge

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

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

###  Alternatives

[felixnagel/t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!

3421.6k](/packages/felixnagel-t3extblog)

PHPackages © 2026

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