There is no license information available for the latest version (dev-master) of this package.

Yii2 Boilerplate

dev-master 2020-09-30 04:35 UTC

This package is auto-updated.

Last update: 2023-05-29 00:58:27 UTC



Composer installation

Install global composer

curl -sS | php
mv composer.phar /usr/local/bin/composer

You can install Yii2 Boilerplate using composer...

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --stability=dev cornernote/yii2-boilerplate myapp

Create and adjust your environment configuration, eg. add a database...

cd myapp
cp .env-dist .env
edit .env

Run the application setup...

./yii app/setup

Install robo...

mv robo.phar /usr/local/bin/robo

Start a webserver...

robo server --port=80 --path web/

Open http://path-to-app/web or http://path-to-app/web?r=admin in your browser.

Install psysh

mv psysh /usr/local/bin/psysh

Code Generation

./yii gii-batch --tables=t1,t2
./yii gii-batch/models --tables=t1,t2
./yii gii-batch/cruds --tables=t1,t2