PHPackages                             buzz/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. buzz/laravel-theme

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

buzz/laravel-theme
==================

Theme Management for Laravel 5.\*

v2.4.3(10y ago)81174MITPHPPHP &gt;=5.4.0

Since Aug 7Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (17)Used By (0)

Theme Management for Laravel 5.\*
=================================

[](#theme-management-for-laravel-5)

> Detect device use package [serbanghita/Mobile-Detect](https://github.com/serbanghita/Mobile-Detect). If you want to be simple, use a version 1. Note: v2.\* switch language to vietnamese

Contents
--------

[](#contents)

1. [Introduction](#introduction)
2. [Installation](#installation)
3. [Configuration](#configuration)
4. [Structure](#structure)
5. [Usage](#usage)

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

[](#introduction)

This is package support the management view files and assets under separate folders. Compatible with Laravel 5.\*

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

[](#installation)

The first run command:

```
composer require buzz/laravel-theme 2.*

```

and then open `config/app.php` add `LaravelThemeServiceProvider` to array `providers`

```
'providers' => [
    //.....
    'Illuminate\Validation\ValidationServiceProvider',
    'Illuminate\View\ViewServiceProvider,
    //.....
    'Buzz\LaravelTheme\LaravelThemeServiceProvider',
],

```

Add `Theme` alias (when set `auto_alias => false` in theme config):

```
'aliases' => [
    //.....
    'Validator' => 'Illuminate\Support\Facades\Validator',
    'View'      => 'Illuminate\Support\Facades\View',
    //.....
    'Theme' =>  'Buzz\LaravelTheme\ThemeFacade',
],

```

Configuration
-------------

[](#configuration)

Publish config file `config/theme.php` with command:

```
php artisan vendor:publish --provider="Buzz\LaravelTheme\LaravelThemeServiceProvider"

```

Usage
-----

[](#usage)

### Structure

[](#structure)

##### Assets

[](#assets)

```
├── public/
    └── themes/
        ├── theme_name/
        |   ├── js/
        |   ├── css/
        |
        └── another_theme_name/

```

##### Views

[](#views)

```
├── resources/
    └── themes/
        ├── theme_name/
        |   ├── index.blade.php
        |   ├── footer.blade.php
        |
        └── another_theme_name/

```

### Render view

[](#render-view)

package does not change the way you render view, you still use the `View::make` or `view()` as default of laravel, read more on [views document](http://laravel.com/docs/5.1/views). If the render view and the view does not exist in the `resources/themes/theme-name`, it will render view in `resources/views`.

### Theme assets

[](#theme-assets)

Use `themeAsset()` instead of `asset()` when link to assets in theme, example:

```

//render
```

### Change current theme

[](#change-current-theme)

You can change the theme in the following ways:

```
app('theme')->set($themeName)
```

Or use function helper

```
setTheme($themeName);//function helper
```

or use Facade

```
Theme::set($themeName);//use facade
```

### Support methods

[](#support-methods)

```
Theme::client();//return object of MobileDetect
Theme::pathTheme($name = null);//return path to current theme or name input
Theme::currentTheme();//return name of current theme
Theme::reset();//reset default theme
Theme::set();//set theme
Theme::allTheme($except = [], $config = true);//get list theme in folder themes
themeAsset($name = false);//link to asset current theme or by theme name
setTheme($name);// change theme by theme name
```

### Support other config provider

[](#support-other-config-provider)

By default package use provider `config` of laravel, you can change to provider you want by edit config `'config_provider' => 'provider_name'`

> P/s: excuse me my English.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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

Recently: every ~16 days

Total

16

Last Release

3833d ago

Major Versions

v1.3.1 → v2.02015-08-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4c833125316ed79bbac308e0583c5ed142e76ba4b7f809794afc72cf0785aba?d=identicon)[Mr.Buzz](/maintainers/Mr.Buzz)

---

Top Contributors

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

---

Tags

laravelthemelaravel5themestheme managertheme management

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k11](/packages/laravel-surveyor)

PHPackages © 2026

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