PHPackages                             kfoobar/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. kfoobar/laravel-theme

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

kfoobar/laravel-theme
=====================

Theme support for Laravel

v1.0.0(2y ago)032[1 issues](https://github.com/KFoobar/laravel-theme/issues)MITPHPPHP ^8

Since Dec 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/KFoobar/laravel-theme)[ Packagist](https://packagist.org/packages/kfoobar/laravel-theme)[ RSS](/packages/kfoobar-laravel-theme/feed)WikiDiscussions main Synced today

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

Laravel Theme
=============

[](#laravel-theme)

Lightweight package for Laravel 8/9/10 that adds simple support for themes.

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

[](#installation)

You can install the package with Composer:

```
composer require kfoobar/laravel-theme
```

The package will automatically register itself.

### Publish config file (optional)

[](#publish-config-file-optional)

Run the following command to publish the config file:

```
php artisan vendor:publish --tag theme-config
```

### Add default folders (optional)

[](#add-default-folders-optional)

The package will automatically load config files from `config/themes/*` and view files `resources/views/themes/*`. To create those folders, run the following command:

```
php artisan theme:install
```

How does it work?
-----------------

[](#how-does-it-work)

The package helps you load config files and display view files based on the theme you have set.

You set which theme you want to use in your `.env` file:

```
APP_THEME=light
```

### Config files

[](#config-files)

The package will help you manage multiple config files for your themes. Based on the theme you have set, the settings will be automatically merged into the `config/theme.php` file.

In the background, the package will load `config/themes/light.php` and merge it into `config/theme.php`. This will enable you to use the same config keys no matter what theme you have set:

```
config('theme.logo')
```

### View files

[](#view-files)

The package also help you load the correct view files based on the theme you have set, by using `theme()` instead of `view()` in your controllers:

```
public function index()
{
    return theme('index');
}
```

When using the `theme()` function, the package will try to load the view file from the following paths and order:

```
/resources/views/themes/light/index.blade.php
/resources/views/theme/default/index.blade.php
/resources/views/index.blade.php

```

Use with Tailwind CSS
---------------------

[](#use-with-tailwind-css)

This package has no support for Tailwind CSS by it self, but we recommend using this package:

```
npm install -D tw-colors
```

Full documention can be found here:

Contributing
------------

[](#contributing)

Contributions are welcome!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

923d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/420690?v=4)[David Villa](/maintainers/KFoobar)[@KFoobar](https://github.com/KFoobar)

---

Top Contributors

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

---

Tags

laravelthememultisite

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58170.4k13](/packages/api-platform-laravel)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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