PHPackages                             plutonex/themes - 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. plutonex/themes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

plutonex/themes
===============

Theme Managing Library for Laravel 4 php framework

1.0.2(12y ago)13402[1 PRs](https://github.com/Plutonex/themes/pulls)BSDPHPPHP &gt;=5.3.0

Since Aug 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Plutonex/themes)[ Packagist](https://packagist.org/packages/plutonex/themes)[ RSS](/packages/plutonex-themes/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

Plutonex Theme
--------------

[](#plutonex-theme)

Theme library for Laravel 4.

### How to install

[](#how-to-install)

Add dependency to the Laravel composer.json file

```
"require": {
        "plutonex/themes": "1.0.*"
    }

```

and add Service Provider to the app/config/app.php file under array key 'providers'

```
'Plutonex\Themes\ThemesServiceProvider',

```

You are required to create a 'themes' folder under the public directory of laravel app. For example all your themes should be developed under /public/themes/

Your themes should be basic laravel views inside the themes directory within a directory with theme name. For example, if you want to create a theme called 'myTheme', the layouts of the theme should be within the path /public/themes/myTheme/layouts

#### Tip

[](#tip)

You can create sub directories under your theme folder, like 'partials' to keep parts of the theme file in common and 'assets' folder to keep all your assets.

### How to use inside Routes

[](#how-to-use-inside-routes)

There are many ways to use this library. The easiest way is to set the theme and layout inside a app/routes.php

```

	Route::get('/', function()
	{
		pxTheme::setTheme('myTheme');
		pxTheme::setLayout('default');

		return View::make('hello');
	});

	Route::group(array('prefix' => 'admin'),function()
	{
		pxTheme::setTheme('adminTheme');
		pxTheme::setLayout('default');

		Route::get('dashboard', function()
		{
			return View::make('admin.dashboard');
		}

		Route::get('users', function()
		{
			pxTheme::setLayout('list');

			return View::make('admin.dashboard');
		}

	});
```

You can either choose to set theme and layout as shown above or simply bind your URI pattern with theme and layout.

```
 // app/routes.php

 // Theme::when({pattern},{layout},{theme});

 Theme::when('/','homePage','myTheme');
 Theme::when('/*','default','myTheme');

 Theme::when('admin','default','adminTheme');
 Theme::when('admin/*','appLayout','adminTheme');
```

### Blade Helpers

[](#blade-helpers)

#### @px.theme('themeName')

[](#pxthemethemename)

This helps you set the theme within a blade view template

#### @px.layout('layoutName')

[](#pxlayoutlayoutname)

This helps you set the theme layout within a blade view

#### @px.include('path.to.view')

[](#pxincludepathtoview)

This helps include a view file within the current theme directory

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4707d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27342ec143f4eda111c49f7df5eef1cc9f86e9b0ed9c004ac7a51a2a5dc6c91a?d=identicon)[raftalks](/maintainers/raftalks)

---

Top Contributors

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

---

Tags

laravelthemelaravel4plutonex

### Embed Badge

![Health badge](/badges/plutonex-themes/health.svg)

```
[![Health](https://phpackages.com/badges/plutonex-themes/health.svg)](https://phpackages.com/packages/plutonex-themes)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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