Download the PHP package lukeed/lumen-theme without Composer

On this page you can find all versions of the php package lukeed/lumen-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 lumen-theme

Lumen Theme

Build Status Latest Stable Version License

Add theming support to your Lumen 5.* projects.

For Laravel support, go to Laravel Theme.

Features

Install

Require it via terminal like so:

Or add the package to your composer file:

Add a new service provider and optional facade to your bootstrap/app.php file:

Configuration

theme.path

Type: string

Default: public/themes

The path to the themes directory, where all themes should live.

To change this value, you may either create a custom config/theme.php file and load it inside bootstrap/app.php or you may set the value directly via the config() helper anywhere inside your application.

OR

Creating a Theme

Every theme directory must contain a views folder and a theme.json file, which contains descriptive information about the theme.

The name, author and directory fields are required.

The directory value must match the name of the theme directory; eg: public/themes/theme-folder.

If your theme is meant to extend or inherit another theme's views, include the directory name "parent theme" as the parent value; eg: parent-folder.

View Hierarchy

Given the example:

The currently active theme will be scanned for a home.blade.php.

If there is a parent attached to the theme, its directory will be scanned next.

Lastly, Lumen's view.paths config value will searched. By default, this is resources/views.

Usage

The theme.path directory will be scanned for all available themes.

If only one theme is found, it will automatically be selected as the active theme. To manually select a different theme, you may use the set method which accepts a directory value.

Then you call views like you usually do in laravel:

This will firstly check if there is a home.blade.php in current theme directory. If none is found then it checks parent theme, and finally falls back to default laravel views location.

You can also inject theme instance using ThemeInterface.

Available methods

Here's the list of methods you can access:

Artisan commands

Get a table of all found themes:

Create a theme directory with config file:

Changelog

Please see CHANGELOG for more information what has changed recently.

TODO


All versions of lumen-theme with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 lukeed/lumen-theme contains the following files

Loading the files please wait ....