mikelmi/mks-theme
Larablocks Analysis
mikelmi/mks-theme works with any PHP project: the latest release (v2.1, Feb 20, 2017) doesn't depend on Laravel.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Feb 20, 2017)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 20, 2017.
- No releases in the last 12 months.
- First released: Sep 26, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require mikelmi/mks-theme |
|
| Latest Version: | v2.1 |
| PHP: | >=7.0 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Feb 20, 2017 |
| Links: | GitHub · Packagist |
Theme Support for Laravel 5
This package supports the management view files and assets under separate folders in Laravel projects.
Installation
- Installation with
composer require mikelmi/mks-theme:dev-master
- Add the service provider in
config/app.php, toproviders:
Mikelmi\MksTheme\Providers\MksThemeServiceProvider::class,
- Add Facade alias in
config/app.php, toaliases:
'Theme' => Mikelmi\MksTheme\Facades\Theme::class,
- Publish config
php artisan vendor:publish --provider="Mikelmi\MksTheme\Providers\MksThemeServiceProvider"
Create/configure theme
- Create new folder in
public/themes/, for examplepublic/themes/cool-theme - Set your theme in
config/theme.php:
'name' => 'cool-theme'
...
- Now you can overwrite any view from
resources/viewswithin the folderpublic/themes/cool-theme/views
Usage
Theme::set('theme-name'); // switch to 'theme-name'
Theme::get(); // retrieve current theme's name
Theme::all(); // retrieve collection with all themes
Theme::asset('assets/path') // retrieve url to theme asset (e.g.: Theme::asset('assets/css/styles.css'))
Theme::info('key'/** or null */); // retrive theme info (from file /themes/theme-name/theme.php)
Alternatives to mikelmi/mks-theme
Theme will help you organize your themes inside Laravel projects easily and main...
Compound views as trees of nodes with ids: a package gives the tree, modules add...
Theme will help you organize your themes inside Laravel projects easily and main...
A powerful theme management system for Laravel 12.x that helps you organize them...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.1 | >=7.0 | MIT | ||
| v2.0 | >=7.0 | 5.4.* | MIT | |
| v1.0 | >=7.0 | 5.3.* | MIT |