cornernote/yii2-boilerplate

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: 2021-12-29 02:09:25 UTC


README

Quick-Start

Composer installation

Install global composer

curl -sS https://getcomposer.org/installer | 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...

wget http://robo.li/robo.phar
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

wget psysh.org/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