originalsystems / yii2-app-template
Custom application template
v1.4.1
2018-10-01 05:36 UTC
Requires
- php: >=7.1.0
- ext-curl: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-pgsql: *
- ext-redis: *
- ext-xml: *
- ext-zip: *
- originalsystems/old-browser: ^1.0
- originalsystems/yii2-app-kernel: ^1.4
- vlucas/phpdotenv: ^2.5
- yiisoft/yii2: ^2.0
- yiisoft/yii2-redis: ^2.0
Requires (Dev)
- kint-php/kint: ^2.2
- yiisoft/yii2-debug: ^2.0
- yiisoft/yii2-faker: ^2.0
- yiisoft/yii2-gii: ^2.0
README
Current template based on php7.1, nginx (with http_image_filter_module), PostgreSQL and redis.
Create project
Creating project, based on current template possible with one composer command
composer create-project originalsystems/yii2-app-template
First steps after create new project:
- run
composer install
, it should create local config files for current instance of application. - create PostgreSQL database for project
- edit
.env
file with your project instance configurations, like host name, db credentials and etc. - optional run
./vendor/bin/generate-nginx-vhost
to generate nginx vhost configuration file, based on.env
file configurations. - optional run
./vendor/bin/generate-cron
to generate cron template for execute application tasks, placed in./cron
directories.