Download the PHP package monkblog/theme-manager without Composer

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

A simple theme manager that can be used with Laravel 5.

Circle CI StyleCI Code Climate Test Coverage Total Downloads Latest Stable Version Latest Unstable Version License

Requirements

Installation

Require this package with Composer

Show me the examples already!!

examples.php

Documentation

Requiring Theme Meta Data Field(s)

This package requires that a theme.yml/theme.yaml file have at least a name field defined.

As of version 1.1 you can define a list of required fields that need to be defined in each theme.yml file. This package will handle and separate the invalid themes from the valid ones.

Go to config/theme-manager.php and change required_fields to the array of required field(s) to be enforced. (see Publish Config section if config is not in your config folder).

Injecting Required Field(s) into Starter Class

If you're not using the Laravel Service Provider, you can pass an array to the \ThemeManager\Starter start() method:

You may also use the helper function as a shortcut:

Error Handling

As of version 1.1 there's a boolean $exceptionOnInvalid which by default is false. To have the package throw exceptions for invalid themes change exception_on_invalid in config/theme-manager.php to be true or pass true as the $exceptionOnInvalid argument on the start method of \ThemeManager\Starter class.

Folder Structure

This package assumes that you have a themes folder at the root of your project containing all your theme folders.

The 'base path' can be overwritten via config/theme-manager.php or the start( __DIR__ . '/folder/' ) method on the \ThemeManager\Starter class

e.g.

Bootstrapping Theme Classes

Bootstrapping theme Service Provider(s) or other important classes before the application runs:

For Laravel users: this code snippet is probably best placed at the bottom of bootstrap/autoload.php

OR

You can also optionally pass in a path to your themes folder if it's different than the default:

Using with Laravel

Once Composer has installed or updated your packages, you need to register ThemeManager with Laravel. Go into your config/app.php, find the providers key and add:

You can add the ThemeManager Facade, to have easier access to the ThemeManager globally:

Usages:

Publish Config

Run:

Override the base themes path:

(See Publish Config section if theme-manager.php isn't present)

Go to config/theme-manager.php and change the base_path to the folder you want to use.

Adding more Themes folder to Manager

If you have a secondary themes folder you can add all of the themes to the ThemeManager by using:

License

This package is open-sourced software licensed under the MIT license.


All versions of theme-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
symfony/yaml Version 2.*
illuminate/support Version 5.0.*|5.1.*
illuminate/filesystem Version 5.0.*|5.1.*
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 monkblog/theme-manager contains the following files

Loading the files please wait ....