PHPackages                             p2made/p2y2-sb-admin - 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. [Admin Panels](/categories/admin)
4. /
5. p2made/p2y2-sb-admin

ActiveYii2-extension[Admin Panels](/categories/admin)

p2made/p2y2-sb-admin
====================

SB Admin from Start Bootstrap, http://startbootstrap.com/, as a backend UI for Yii 2 Framework.

5.0.0(4y ago)3417↓100%23[3 issues](https://github.com/p2made/p2y2-admin/issues)MITCSS

Since Sep 11Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/p2made/p2y2-admin)[ Packagist](https://packagist.org/packages/p2made/p2y2-sb-admin)[ RSS](/packages/p2made-p2y2-sb-admin/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

P2 Admin Theme 5.0.0
====================

[](#p2-admin-theme-500)

[![Latest Stable Version](https://camo.githubusercontent.com/6243eafc502d870009161dcf056765d4f73ddc635a4700276328dcaa3c3e2d1c/687474703a2f2f706f7365722e707567782e6f72672f70326d6164652f703279322d73622d61646d696e2f76)](https://packagist.org/packages/p2made/p2y2-sb-admin)[![Latest Unstable Version](https://camo.githubusercontent.com/2889cca490756785344174f7ce501b4f39bf3dceb672d5e5b3ab96889cc42fa2/687474703a2f2f706f7365722e707567782e6f72672f70326d6164652f703279322d73622d61646d696e2f762f756e737461626c65)](https://packagist.org/packages/p2made/p2y2-sb-admin)[![Total Downloads](https://camo.githubusercontent.com/0ce2ecd534c8244137726787b2b3044894085b736b1b60727ab7f84999bbac33/687474703a2f2f706f7365722e707567782e6f72672f70326d6164652f703279322d73622d61646d696e2f646f776e6c6f616473)](https://packagist.org/packages/p2made/p2y2-sb-admin)[![License](https://camo.githubusercontent.com/c36b1b786b76304021a4e1db59c5c54ecca06c0e0f30af8c4850ff722d41c7f5/687474703a2f2f706f7365722e707567782e6f72672f70326d6164652f703279322d73622d61646d696e2f6c6963656e7365)](https://packagist.org/packages/p2made/p2y2-sb-admin)[![PHP Version Require](https://camo.githubusercontent.com/229df969934228e150ae2fa9f30cfe51709a2c6b1005729af3bb21edf18ca8d2/687474703a2f2f706f7365722e707567782e6f72672f70326d6164652f703279322d73622d61646d696e2f726571756972652f706870)](https://packagist.org/packages/p2made/p2y2-sb-admin)

\--

SB Admin from [Start Bootstrap](http://startbootstrap.com/) as a backend UI for Yii 2 Framework.

P2 SB Admin Theme contains [AssetBundles for Yii 2.0 Framework](http://www.yiiframework.com/doc-2.0/guide-structure-assets.html)which registers the CSS &amp; JS files for the SB Admin 2 UI.

It declares [`yii2-p2y2-things`](https://github.com/p2made/yii2-p2y2-things) as a dependancy.

¡¡ IMPORTANT !!
===============

[](#-important-)

Version 2.0.0 of all my Yii2 add-ons marks a breaking change where I've shortened my namespaces. In P2 SB Admin Theme `p2made\theme\sbAdmin\rest\of\namespace` is now `p2m\sbAdmin\rest\of\namespace`. In the rest of my Yii2 add-ons `p2made\rest\of\namespace` is now `p2m\rest\of\namespace`.

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

[](#installation)

The preferred way to install P2 SB Admin Theme is through [composer](http://getcomposer.org/download/). Depending on your composer installation, run *one* of the following commands:

```
composer require p2made/p2y2-admin "dev-5.0.0-dev"

```

or

```
php composer.phar require p2made/p2y2-admin "dev-5.0.0-dev"

```

Alternatively add:

```
		"p2made/p2y2-admin": "dev-5.0.0-dev"

```

to the requires section of your `composer.json` file &amp; P2 SB Admin Theme will be installed next time you run `composer update`.

The files are installed via Yii's recommended usage of the `fxp/composer-asset-plugin`.

Quick Start
-----------

[](#quick-start)

Once the extension is installed, you can have a *preview* by reconfiguring the path mappings of the view component:

```
	'components' => [
		'view' => [
			'theme' => [
				'pathMap' => [
					'@app/views' => '@vendor/p2made/p2y2-admin/views/sb-admin-2',
				],
			],
		],
	],
```

This asset bundle provides sample files for layout and view (see folder `views/`), they are **not meant to be customized directly in the `vendor/` folder**. If you do that, your changes will be lost next time you run `composer update`.

Therefore it is recommended to **copy the views into your application** and adjust them to your needs.

To view pages in `site/pages/` you need to modify `actions()` in the `SiteController`:

```
	public function actions()
	{
		return [
			...
			'page' => [
				'class' => 'yii\web\ViewAction',
			],
		];
	}
```

And then...
-----------

[](#and-then)

P2 SB Admin Theme uses [P2Y2Things](https://github.com/p2made/yii2-p2y2-things) which requires some Yii 2 assets to be nullified to avoid conflicts through double loading. Modify `common/config/main.php` with...

```
	'components' => [
		'assetManager' => [
			'bundles' => [
				'yii\web\JqueryAsset' => [
					'sourcePath' => null, 'js' => [],
				],
				'yii\bootstrap\BootstrapAsset' => [
					'sourcePath' => null, 'css' => [],
				],
				'yii\bootstrap\BootstrapPluginAsset' => [
					'sourcePath' => null, 'js' => [],
				],
				'yii\jui\JuiAsset' => [
					'sourcePath' => null, 'css' => [], 'js' => [],
				],
				'\rmrevin\yii\fontawesome\AssetBundle' => [
					'sourcePath' => null, 'css' => [],
				],
			],
		],
		...
	],

```

Customization
-------------

[](#customization)

- Copy files from `vendor/p2made/p2y2-admin/views-preview/sb-admin-2` (or other theme) to `@app/views`.
- Remove the custom `view` configuration from your application by deleting the path mappings, if you have made them before.
- Edit your views adhering to html markup `http://startbootstrap.com/template-overviews/sb-admin-2/` &amp; the example views.

If you want to use the layout files *without* modifying them, then use this slightly different modification to the path mappings that only re-maps the `layouts` folder:

```
	'components' => [
		'view' => [
			'theme' => [
				'pathMap' => [
					'@app/views/layouts' => '@vendor/p2made/p2y2-admin/views/sb-admin-2/layouts',
				],
			],
		],
	],
```

Known Issues
------------

[](#known-issues)

- sample pages in `site/pages/` return a 403 error when viewed in the Yii2 Advanced backend. This doesn't happen in the Yii2 Advanced frontend.

I've not been able to resolve this. It may be an issue on my development machine.

To Do
-----

[](#to-do)

- Calendar page.
- Original SB Admin.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance57

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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

Unknown

Total

1

Last Release

1656d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29b098ab60349c6d4301db09c4d9cc4561d9410a15d71f7c021ded9be093ecd6?d=identicon)[p2m](/maintainers/p2m)

---

Top Contributors

[![p2made](https://avatars.githubusercontent.com/u/5487600?v=4)](https://github.com/p2made "p2made (102 commits)")[![francislavoie](https://avatars.githubusercontent.com/u/2111701?v=4)](https://github.com/francislavoie "francislavoie (3 commits)")

---

Tags

phpbundleuiyii2extensionthemeyiibackendassetadminuser-interfacesb-admin-2Start-Bootstrap

### Embed Badge

![Health badge](/badges/p2made-p2y2-sb-admin/health.svg)

```
[![Health](https://phpackages.com/badges/p2made-p2y2-sb-admin/health.svg)](https://phpackages.com/packages/p2made-p2y2-sb-admin)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M63](/packages/dmstr-yii2-adminlte-asset)[yiister/yii2-gentelella

Free admin template for backend

275273.5k5](/packages/yiister-yii2-gentelella)

PHPackages © 2026

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