New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mikelmi/mks-theme

Theme support for Laravel
60

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 advised

Not 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
Maintainer: mikelmi

Theme Support for Laravel 5

This package supports the management view files and assets under separate folders in Laravel projects.

Installation

  1. Installation with
    composer require mikelmi/mks-theme:dev-master
  1. Add the service provider in config/app.php, to providers:
    Mikelmi\MksTheme\Providers\MksThemeServiceProvider::class,
  1. Add Facade alias in config/app.php, to aliases:
    'Theme' => Mikelmi\MksTheme\Facades\Theme::class,
  1. Publish config
    php artisan vendor:publish --provider="Mikelmi\MksTheme\Providers\MksThemeServiceProvider"

Create/configure theme

  1. Create new folder in public/themes/, for example public/themes/cool-theme
  2. Set your theme in config/theme.php:
    'name' => 'cool-theme'
    ...
  1. Now you can overwrite any view from resources/views within the folder public/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

teepluss/theme

Theme will help you organize your themes inside Laravel projects easily and main...

182,025 540
webx-ui/compositions

Compound views as trees of nodes with ids: a package gives the tree, modules add...

647 0
facuz/laravel-themes

Theme will help you organize your themes inside Laravel projects easily and main...

45,517 137
ayra/laravel-themes

A powerful theme management system for Laravel 12.x that helps you organize them...

11,492 3
yaap/theme

Theme support for Laravel with assets, theme extends etc.

45,660 95

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