Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cornernote/yii2-boilerplate
Yii2 Boilerplate
https://github.com/cornernote/yii2-boilerplate
Last synced: 26 days ago
JSON representation
Yii2 Boilerplate
- Host: GitHub
- URL: https://github.com/cornernote/yii2-boilerplate
- Owner: cornernote
- License: other
- Created: 2015-05-30T02:49:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T02:49:05.000Z (almost 2 years ago)
- Last Synced: 2024-10-27T16:24:26.524Z (3 months ago)
- Language: PHP
- Size: 167 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Yii2 Boilerplate
## 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](https://getcomposer.org/download/)...
```
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
```