PHPackages                             intentor/laravel-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. [Templating &amp; Views](/categories/templating)
4. /
5. intentor/laravel-theme

ActiveLibrary[Templating &amp; Views](/categories/templating)

intentor/laravel-theme
======================

Simple theme manager for Laravel 5.

v1.2(10y ago)11247MITPHPPHP &gt;=5.4.0CI failing

Since Mar 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/intentor/laravel-theme)[ Packagist](https://packagist.org/packages/intentor/laravel-theme)[ Docs](https://github.com/intentor/laravel-theme)[ RSS](/packages/intentor-laravel-theme/feed)WikiDiscussions master Synced today

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

[![Laravel Theme](https://cloud.githubusercontent.com/assets/5340818/6719072/0df533b0-cd97-11e4-9951-59796621efae.png)](https://cloud.githubusercontent.com/assets/5340818/6719072/0df533b0-cd97-11e4-9951-59796621efae.png)
============================================================================================================================================================================================================================

[](#)

**Simple theme manager for Laravel 5**

Currently the project is **DISCONTINUED**. However, feel free to fork it and continue its development!

Contents
--------

[](#contents)

1. [Introduction](#introduction)
2. [Installation](#installation)
3. [Quick start](#quick-start)
4. [Best practices](#best-practices)
5. [Limitations](#limitations)
6. [Changelog](#changelog)
7. [Support](#support)
8. [License](#license)

Introduction
--------------------------------------------------

[](#introduction)

*Laravel Theme* provides a simple way to manage themes on a Laravel app.

Compatible with Laravel 5.

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

[](#installation)

### Laravel 5.0

[](#laravel-50)

At `composer.json` of your Laravel installation, add the following require line:

```
{
    "require": {
        "intentor/laravel-theme": "~1.0"
    }
}
```

Run `composer update` to add the package to your Laravel app.

At `config/app.php`, add the Service Provider and the Facade:

```
    'providers' => [
		'Intentor\LaravelTheme\ServiceProvider',
    ]

	//...

    'aliases' => [
        'Form' => 'Intentor\LaravelTheme\Facade',
    ]
```

### Laravel 5.1+

[](#laravel-51)

At `composer.json` of your Laravel installation, add the following require line:

```
{
    "require": {
        "intentor/laravel-theme": "~1.0"
    }
}
```

Run `composer update` to add the package to your Laravel app.

At `config/app.php`, add the Service Provider and the Facade:

```
    'providers' => [
        Intentor\LaravelTheme\ServiceProvider::class,
    ]

    //...

    'aliases' => [
        'Form' => Intentor\LaravelTheme\Facade::class,
    ]
```

Quick start
------------------------------------------------

[](#quick-start)

### Creating a theme

[](#creating-a-theme)

To create a theme, first add a `themes` folder to the `resources` folder of your app.

Inside the `themes` folder, any folder you create will represent a theme. For each theme folder, add a `views` folder, in which you'll create all the views for that particular theme.

The folder structure will look like this:

```
resources
└── themes
    ├── [theme folder]
    |   └── views
    |
    └── [another theme folder]
        └── views

```

### Setting a theme

[](#setting-a-theme)

To set a theme, call `Theme::set('theme_name')` anywhere you want to change your theme.

**Remember**: the name of theme is the name of the folder that represents the theme at the `resources/themes` folder.

### Displaying views

[](#displaying-views)

To display a view, just call `view('view_name')` without indicating any reference to the theme.

### Adding assets

[](#adding-assets)

To add assets to pages, just include them pointing to their location at the `public` folder.

Best practices
------------------------------------------------------

[](#best-practices)

1\. Add any assets (images, CSS, JS, etc.) for the theme in a specific folder inside the `public` folder.

2\. If you're using a task manager (like [Gulp](http://gulpjs.com/) or [Grunt](http://gruntjs.com/)) it's recommended to add assets at an `assets` folder inside the theme and then move the files to the public location.

```
resources
└── themes
    ├── [theme folder]
    |   ├── css/sass/less
    |   ├── img
    |   ├── js
    |   └── views
    |
    └── [another theme folder]
        ├── css/sass/less
        ├── img
        ├── js
        └── views

```

3\. Create shared views at the `resources/views` folder.

4\. Views in themes always override shared views.

Limitations
------------------------------------------------

[](#limitations)

1. Asset management can be rather awkward, given the views for the theme are outside the `public` folder.

Changelog
--------------------------------------------

[](#changelog)

Please see [CHANGELOG.md](CHANGELOG.md).

Support
----------------------------------------

[](#support)

Found a bug? Please create an issue on the [GitHub project page](https://github.com/intentor/laravel-theme/issues) or send a pull request if you have a fix or extension.

You can also send me a message at  to discuss more obscure matters about the component.

License
----------------------------------------

[](#license)

Licensed under the [The MIT License (MIT)](http://opensource.org/licenses/MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

3962d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f638c343495bedb85144e5905d74d322747f5873c36d0edbacb157b4fc8b639?d=identicon)[Intentor](/maintainers/Intentor)

---

Top Contributors

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

---

Tags

discontinuedlaravelphppluginbladetemplateviewlaravel 5themeassets

### Embed Badge

![Health badge](/badges/intentor-laravel-theme/health.svg)

```
[![Health](https://phpackages.com/badges/intentor-laravel-theme/health.svg)](https://phpackages.com/packages/intentor-laravel-theme)
```

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8379.7M104](/packages/eftec-bladeone)[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8791.3M114](/packages/jenssegers-blade)[fiskhandlarn/blade

A library for using Laravel Blade templates in WordPress/WordPlate.

366.0k](/packages/fiskhandlarn-blade)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

2110.6k](/packages/leitsch-kirby-blade)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1022.8k6](/packages/eftec-bladeonehtml)[beebmx/kirby-blade

Blade template for Kirby

141.9k3](/packages/beebmx-kirby-blade)

PHPackages © 2026

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