PHPackages                             p2made/yii2-flat-theme - 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/yii2-flat-theme

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

p2made/yii2-flat-theme
======================

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

0.5.1(8y ago)33741MITPHPPHP &gt;=5.4.0

Since Jan 29Pushed 8y ago3 watchersCompare

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

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

P2Flat Theme v0.5.2-beta
========================

[](#p2flat-theme-v052-beta)

[![License](https://camo.githubusercontent.com/64a6e938ba7f07f289f5c8f4fab989f6ce922054f1ce38a54fd8849bea3fb12f/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d666c61742d7468656d652f6c6963656e7365)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Total Downloads](https://camo.githubusercontent.com/1da27d1b103eaeaf46850222696a384199e2954a53c61554ed5b8c4e8bd67254/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d666c61742d7468656d652f646f776e6c6f616473)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Monthly Downloads](https://camo.githubusercontent.com/17f586dab29d430f8f664c0a04fc0e90e9b3f3334c2743e9c3f9cfaf0dd50aa9/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d666c61742d7468656d652f642f6d6f6e74686c79)](https://packagist.org/packages/p2made/yii2-p2y2-things)[![Latest Stable Version](https://camo.githubusercontent.com/82c74022a54c38d345ae9a81eee24d230824c3fb6696f21615b6a95bf3aca4b0/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d666c61742d7468656d652f762f737461626c65)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Latest Unstable Version](https://camo.githubusercontent.com/9be86cdd22ebe3cd4ffd43d0a31c6aff134a8f099d9429f9847567ba420e9094/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d666c61742d7468656d652f762f756e737461626c65)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Dependency Status](https://camo.githubusercontent.com/7503b35a5eaca3431b935faad956b9630ad3b67dfd86c94f21b21fe698e1cc17/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539336265396238306662323466303033646530633830662f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/593be9b80fb24f003de0c80f)

\--

Flat Theme from [ShapeBootstrap](http://shapebootstrap.net) as a frontend UI for Yii 2 Framework.

Flat 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 [`p2made/yii2-asset-collection`](https://github.com/p2made/yii2-asset-collection) as a dependancy.

¡¡¡ On Hold !!!
===============

[](#-on-hold-)

Updates in the dependencies to the original appear to have broken some elememts &amp; it's a right mess for which I don't immediately have time.

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

[](#installation)

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

```
composer require p2made/yii2-flat-theme "^0.5"

```

or

```
php composer.phar require p2made/yii2-flat-theme "^0.5"

```

Alternatively add:

```
"p2made/yii2-flat-theme": "^0.5"

```

to the requires section of your `composer.json` file &amp; p2y2bootstrapSocialAsset 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/yii2-flat-theme/example-views/flat'
				],
			],
		],
	],
```

This asset bundle provides sample files for layout and view (see folder `example-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 the sample 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)

P2Flat 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/yii2-flat-theme/example-views/flat` (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://shapebootstrap.net/item/flat-theme-free-responsive-multipurpose-site-template/` &amp; the example views.

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

[](#known-issues)

- sample pages in `site/pages/` return a 403 error when viewed in the Y11 2 Advanced backend.

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

To Do
-----

[](#to-do)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Recently: every ~91 days

Total

10

Last Release

2946d 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 (33 commits)")

---

Tags

phpbundleuiyii2extensionthemeyiiassetadminfrontenduser-interfaceflat

### Embed Badge

![Health badge](/badges/p2made-yii2-flat-theme/health.svg)

```
[![Health](https://phpackages.com/badges/p2made-yii2-flat-theme/health.svg)](https://phpackages.com/packages/p2made-yii2-flat-theme)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

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

Free admin template for backend

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

PHPackages © 2026

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