ks465 / yii2-utils

A pack of multiple components and widgets, especially designed for simpler and more generic coding
GNU General Public License v2.0
0 stars 0 forks source link

Documentation Edition: 1.1-980119

Personal Utilities for Simpler Coding

A pack of multiple components and widgets, especially designed for simpler and more generic coding repository

Test Install

The next step is just for initial development, skip it if you directly publish the extension on packagist.org

Add the newly created repo to your composer.json.

"repositories":[
    {
        "type": "git",
        "url": "https://github.com/ks465/yii2-utils.git"
    }
]

And run

composer.phar require khans465/yii2-utils:dev-master

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist khans465/yii2-utils "*"

or add

"khans465/yii2-utils": "*"

to the require section of your composer.json file.

Usage

The Test files in tests* directory show all possible usage for the package. Each file has a runAllTests method which you can use to see everything this class does.

Documentation

  1. Installation
  2. Documents
  3. Guide
  4. Columns

Test debug utilities:

$tester = new \khans\utils\tests\TestAdmin();
$tester->runAllTests();

Test components:

$tester = new \khans\utils\tests\TestComponents();
$tester->runAllTests();

Test widgets:

$tester = new \khans\utils\tests\TestWidgets();
$tester->runAllTests();