nullref/yii2-app

Yii 2 项目模板

v0.0.1 2016-07-29 13:59 UTC

This package is auto-updated.

Last update: 2024-08-29 03:36:00 UTC


README

又一个Yii2应用程序骨架)

Latest Stable Version Total Downloads Latest Unstable Version License

目录结构

src/ 				source code
vendors				3rd-party packages
runtime/            contains files generated during runtime
tests/              contains various tests for the basic application
web/				the entry script and Web resources
infracture/			the infrastructure folder (docker/docker-compose setup)
bin/			    scripts

需求

本项目模板对Web服务器的最低要求是支持PHP 5.4.0。

安装

如果您没有Composer,可以按照getcomposer.org上的说明进行安装。

然后,您可以使用以下命令安装此项目模板

composer global require "hirak/prestissimo:~0.3.5"
composer global require "fxp/composer-asset-plugin:~1.3.0"
composer create-project "nullref/yii2-app" --stability=dev %PROJECT_NAME%
cd %PROJECT_NAME%
php yii env
php yii module/install nullref/yii2-full-admin

如果您使用composer.phar作为本地文件,必须使用以php composer.phar开头的命令

使用说明

如果您想使用PhpStorm将此项目添加到远程仓库,请按照以下步骤操作

1. At the end of installing project remove current VCS in composer dialog.
2. In PhpStorm -> VCS -> Enable Version Control Integration
3. Add all files to git
4. VCS -> Commit and Push
5. Before Push phase define your repository