All Projects → bkeremm → laravel-theme

bkeremm / laravel-theme

Licence: MIT license
This package creates multiple managed theme infrastructure for Laravel.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-theme

Riot-Games-API-Developer-Assets
Riot Games API Developer Assets!
Stars: ✭ 23 (+21.05%)
Mutual labels:  assets
bash-tpl
A smart, lightweight shell script templating engine, written in Bash
Stars: ✭ 26 (+36.84%)
Mutual labels:  template-engine
Textrude
Code generation from YAML/JSON/CSV models via SCRIBAN templates
Stars: ✭ 79 (+315.79%)
Mutual labels:  template-engine
morestachio
Lightweight, powerful, flavorful, template engine.
Stars: ✭ 45 (+136.84%)
Mutual labels:  template-engine
dry
Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance features, and more. From the creators of Enquirer, Assemble, Remarkable, and Micromatch.
Stars: ✭ 66 (+247.37%)
Mutual labels:  template-engine
puppeteer-assets
Measuring and monitor assets metrics using Puppeteer and Prometheus
Stars: ✭ 29 (+52.63%)
Mutual labels:  assets
templatel
Jinja inspired template language for Emacs Lisp
Stars: ✭ 46 (+142.11%)
Mutual labels:  template-engine
cottle
High performance template engine for C#
Stars: ✭ 99 (+421.05%)
Mutual labels:  template-engine
ftmpl
Fast typesafe templating for golang
Stars: ✭ 61 (+221.05%)
Mutual labels:  template-engine
simple-template
Text templating processor for SWI-Prolog.
Stars: ✭ 29 (+52.63%)
Mutual labels:  template-engine
assetic
Asset Management for PHP
Stars: ✭ 61 (+221.05%)
Mutual labels:  assets
frep
Generate file using template from environment, arguments, json/yaml/toml config files
Stars: ✭ 135 (+610.53%)
Mutual labels:  template-engine
TemplateEngine
Design and build web applications with components using only your web browser
Stars: ✭ 41 (+115.79%)
Mutual labels:  template-engine
opentbs
With OpenTBS you can merge OpenOffice - LibreOffice and Ms Office documents with PHP using the TinyButStrong template engine. Simple use OpenOffice - LibreOffice or Ms Office to edit your templates : DOCX, XLSX, PPTX, ODT, OSD, ODP and other formats. That is the Natural Template philosophy.
Stars: ✭ 48 (+152.63%)
Mutual labels:  template-engine
hydrate-text
A small, dependency-free and strongly typed template engine.
Stars: ✭ 45 (+136.84%)
Mutual labels:  template-engine
te4j
Fast and easy template engine
Stars: ✭ 20 (+5.26%)
Mutual labels:  template-engine
unity-visual-novel-toolkit
WIP: Create a Visual Novel with no programming
Stars: ✭ 34 (+78.95%)
Mutual labels:  assets
cinje
A Pythonic and ultra fast template engine DSL.
Stars: ✭ 26 (+36.84%)
Mutual labels:  template-engine
mole
A tool for managing design decision outputs for different platforms
Stars: ✭ 30 (+57.89%)
Mutual labels:  template-engine
serverless-s3bucket-sync
Serverless Plugin to sync local folders with an S3 bucket
Stars: ✭ 24 (+26.32%)
Mutual labels:  assets

Laravel Theme

Laravel Template Builder

Latest Stable Version Total Downloads License

This package creates multiple managed theme infrastructure for Laravel.

Getting Started

1. Install

Run the install command:

composer require bkeremm/laravel-theme

2. Register (for Laravel < 5.5)

Register the service provider in config/app.php

Cankod\Theme\ServiceProvider::class,

Add alias if you want to use the facade.

'Theme' => Cankod\Theme\Facade::class,

3. Publish

Publish config file.

php artisan vendor:publish --tag=theme

4. Configure

You can change the options of your app from config/theme.php file

Usage

Just run the artisan command to create a new theme.

php artisan theme:generate

Facade

<link rel="stylesheet" href="{{ Theme::asset('app.css') }}">
<script type="javascript" src="{{ Theme::asset('app.js') }}"> 

or you can create your css and js files automatically by using assetLink helper.

Theme::assetLink('app.css'); // Output: <link rel="stylesheet" href="https://github.com/themes/default/css/app.css">
Theme::assetLink('app.js'); 

Configure

config/theme.php contains the following settings.

If you want to change the default created file and folder names with Artisan command, you can do this easily in config/theme.php.

    'current_theme' => 'default',

    'views_folder' => [
        'layout'    => 'layouts',
        'component' => 'components',
    ],

    'views_blade' => [
        'index'     => 'index',
        'header'    => 'header',
        'footer'    => 'footer',
        'layout'    => 'main',
    ],
 
    'webpack' => [
        'folder' => [
            'js'    => 'js',
            'css'   => 'sass',
        ],
        'file' => [
            'css'           => 'app.scss',
            'variable'      => '_variables.scss',
            'js'            => 'app.js',
            'bootstrap'     => 'bootstrap.js',
        ]
    ],

    'resource_path'     => 'themes',
    'public_path'       => 'themes',

If you want to activate a new theme on the front side, just type the theme name in the current_theme field.

'current_theme' => 'theme_name', 

What's next?

  • Webpack Build
  • Advanced View Files

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].