PHP code example of liumapp / yii2-library

1. Go to this page and download the library: Download liumapp/yii2-library library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

liumapp / yii2-library example snippets



    'modules' => [
        'library'=>[
            'class'=>'liumapp\library\Module'
        ],
    ],
    
sh

php yii migrate --migrationPath=@vendor/liumapp/yii2-library/migrations

sh
php yii library/create-admin  管理员 $username $password $youremail