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

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

p2made/yii2-triangle-theme
==========================

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

0.7.1(8y ago)1191[1 issues](https://github.com/p2made/yii2-triangle-theme/issues)MITPHPPHP &gt;=5.4.0

Since Jan 29Pushed 8y ago1 watchersCompare

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

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

P2Triangle Theme v0.7.2-beta
============================

[](#p2triangle-theme-v072-beta)

[![License](https://camo.githubusercontent.com/a428b83c0af5bfb93740e3f7b4741a5369b5448d47e84f24f84fbbc9442e8540/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d747269616e676c652d7468656d652f6c6963656e7365)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Total Downloads](https://camo.githubusercontent.com/38b2a17d326d1350a470752cc5747e0f22c31792da77745aaddc140b07b49648/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d747269616e676c652d7468656d652f646f776e6c6f616473)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Monthly Downloads](https://camo.githubusercontent.com/53a3f0b4672c92e317e4f78c749f1a5e77d12339df94f30bcb2c73d832ff06ee/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d747269616e676c652d7468656d652f642f6d6f6e74686c79)](https://packagist.org/packages/p2made/yii2-p2y2-things)[![Latest Stable Version](https://camo.githubusercontent.com/362e68928a66826fc8c249d500557936ad61f94296bf18feecb624d5db5c0f7f/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d747269616e676c652d7468656d652f762f737461626c65)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)[![Latest Unstable Version](https://camo.githubusercontent.com/588ae118979c690b5d440ab4042433998ed8f19717c8c969bea7cb141737f4cc/68747470733a2f2f706f7365722e707567782e6f72672f70326d6164652f796969322d747269616e676c652d7468656d652f762f756e737461626c65)](https://packagist.org/packages/p2made/yii2-p2y2-things-demo)

---

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

P2Triangle 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 Triangle UI.

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

*!!!* This theme still has some rough &amp; unfinished bits. It's only been let out of the cage so I can begin using it in other projects.

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

[](#installation)

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

```
composer require --prefer-dist p2made/yii2-triangle-theme "^0.7"

```

or

```
php composer.phar require --prefer-dist p2made/yii2-triangle-theme "^0.7"

```

Alternatively add:

```
"p2made/yii2-triangle-theme": "^0.7"

```

to the requires section of your `composer.json` file &amp; P2Triangle 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/yii2-triangle-theme/views/multicolor',
					// for the single color version use this line instead...
					//'@app/views' => '@vendor/p2made/yii2-triangle-theme/views/singlecolor',
				],
			],
		],
	],
```

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',
			],
		];
	}
```

P2Triangle 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-triangle-theme/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://shapebootstrap.net/item/triangle-free-responsive-multipurpose-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. This doesn't happen in the Y11 2 Advanced frontend.

I've not been able to resolve this. It may be an issue on my development machine. For my own use of this theme it isn't important as I'll only be using this as a frontend.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Recently: every ~91 days

Total

9

Last Release

2955d 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 (24 commits)")

---

Tags

phpbundleuiyii2extensionthemeyiiassetadminfrontenduser-interface

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/p2made-yii2-triangle-theme/health.svg)](https://phpackages.com/packages/p2made-yii2-triangle-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)
