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

ActiveLibrary

xtwoend/laravel-themes
======================

The Simple Themes.

07PHP

Since May 28Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Themes
----------------

[](#laravel-5-themes)

This is a package for the Laravel 5 Framework that adds basic support for managing themes. It allows you to seperate your views &amp; your assets files in seperate folders, and supports for theme extending! Awesome :)

Features:

- Views &amp; Asset seperation in theme folders
- Theme inheritence: Extend any theme and create Theme hierarcies (WordPress style!)
- Generate theme via artisan console

### Installation

[](#installation)

install with

```
	composer require "xtwoend/laravel-themes"

```

Add the service provider in app/config/app.php, Providers array:

```
	...
	Xtwoend\Themes\Providers\ThemesServiceProvider::class,

```

also edit the Facades array and add:

```
	...
	'Theme' => Xtwoend\Themes\Facades\Themes::class,

```

Almost Done. You can optionally publish a configuration file to your application with

php artisan vendor:publish --provider="Xtwoend\\Themes\\Providers\\ThemesServiceProvider"

That's it. You are now ready to start theming your applications!

Working with Themes

The default theme can be configured in the themes.php configuration file. Working with themes is very straightforward. Use:

```
	Theme:set('themename')

```

or with middleware

add middleware theme set in App\\Htpp\\Kernel.php

```
	protected $routeMiddleware = [
		...
		'theme' => \Xtwoend\Themes\Middleware\SetCurrentTheme::class,
	]

```

set middleware in your route

```
	Route::group(['middleware' => 'theme:themename'], function(){
		// any route
	});
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/707e862eb8fddef4791639520cae4efdc10855859dcf3aa74c1bafa46c5bb575?d=identicon)[xtwoend](/maintainers/xtwoend)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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