Download the PHP package mikbox74/yii2-chl without Composer

On this page you can find all versions of the php package mikbox74/yii2-chl. 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 yii2-chl

Yii2 extension for Chaldene Admin Template

The extension adds support for the Chaldene Admin Template markup.

This extension includes easy applicable asset bundles, HTML layouts and basic widgets.

Installation

Your best CLI-friend will help you with this:

composer require mikbox74/yii2-chl

Starting the party

For beginning you must configure view component:

The mikbox74\Chaldene\ChaldeneView overrides system layout path and makes some nice magic. For more magic you can use following properties:

Themization

Since 1.1.6:

Look inside mikbox74\Chaldene\ChaldeneThemes to use its constants:

Before 1.1.6:

You can set one of these by configuring the assetManager component. Example:

Themes do not differ much from each other but may be you will like this feature ;)

More about widgets placement

I recommend to set up widgets in special file:

widgets.php:

The first level is an associative array with the pairs 'place name' => 'widgets list in this place'.

The template has following places:

Next level is the plain list of widgets. Every widget can be configured by three ways:

  1. Plain text string. It will be placed right inside without any changing.
  2. Configuration array with 'class' element and any properties of the specified class (Yii-way).
  3. Anonimous function returns a class configuration array (like above).

In brief about widgets

Much more info see in DocComments.

And... Killer feature: decoratos!

Since 1.1.0 each widget from the package has a string propery decorator. You can use it to specify path to any decorator file you want (see somthing about ContentDecorator to get how it works). For example you can create file @common/views/decorators/example.php:

and set the path as decorator for any widget.

Handsome cheatsheet

Top navigation

Side navigation

Mobile search


All versions of yii2-chl with dependencies

PHP Build Version
Package Version
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 mikbox74/yii2-chl contains the following files

Loading the files please wait ....