Download the PHP package intentor/laravel-theme without Composer

On this page you can find all versions of the php package intentor/laravel-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-theme

Laravel Theme

Simple theme manager for Laravel 5

Currently the project is DISCONTINUED. However, feel free to fork it and continue its development!

Contents

  1. Introduction
  2. Installation
  3. Quick start
  4. Best practices
  5. Limitations
  6. Changelog
  7. Support
  8. License

Introduction

Laravel Theme provides a simple way to manage themes on a Laravel app.

Compatible with Laravel 5.

Installation

Laravel 5.0

At composer.json of your Laravel installation, add the following require line:

Run composer update to add the package to your Laravel app.

At config/app.php, add the Service Provider and the Facade:

Laravel 5.1+

At composer.json of your Laravel installation, add the following require line:

Run composer update to add the package to your Laravel app.

At config/app.php, add the Service Provider and the Facade:

Quick start

Creating a theme

To create a theme, first add a themes folder to the resources folder of your app.

Inside the themes folder, any folder you create will represent a theme. For each theme folder, add a views folder, in which you'll create all the views for that particular theme.

The folder structure will look like this:

Setting a theme

To set a theme, call Theme::set('theme_name') anywhere you want to change your theme.

Remember: the name of theme is the name of the folder that represents the theme at the resources/themes folder.

Displaying views

To display a view, just call view('view_name') without indicating any reference to the theme.

Adding assets

To add assets to pages, just include them pointing to their location at the public folder.

Best practices

1. Add any assets (images, CSS, JS, etc.) for the theme in a specific folder inside the public folder.

2. If you're using a task manager (like Gulp or Grunt) it's recommended to add assets at an assets folder inside the theme and then move the files to the public location.

3. Create shared views at the resources/views folder.

4. Views in themes always override shared views.

Limitations

  1. Asset management can be rather awkward, given the views for the theme are outside the public folder.

Changelog

Please see CHANGELOG.md.

Support

Found a bug? Please create an issue on the GitHub project page or send a pull request if you have a fix or extension.

You can also send me a message at [email protected] to discuss more obscure matters about the component.

License

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


All versions of laravel-theme with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
laravel/framework Version 5.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package intentor/laravel-theme contains the following files

Loading the files please wait ....