百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

app

> 编程语言
开源

Yii3 Web 应用程序模板

374 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Yii3 Web 应用程序模板

Yii3 web application

An application template for a new web project The package is a classic web application template. If you need console only or API please start with corresponding templates:

  • Console application template
  • API application template

Requirements

  • PHP 8.2 - 8.5.

Installation

Local installation

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

Create a project:

bash
composer create-project yiisoft/app myproject
cd myproject

[!NOTE] Ensure that Composer is executed with the same PHP version that will be used to run the application.

Copy the example environment file and adjust as needed:

bash
cp .env.example .env

To run the app:

bash
./yii serve

Now you should be able to access the application through the URL printed to console. Usually it is http://localhost:8080.

[!TIP] The .env file is for local development only and is excluded from version control. In production, configure environment variables via your server or container instead.

Installation with Docker

[!WARNING] Docker compose version 2.24 or above is required.

Fork the repository, clone it, then:

bash
cd myproject
make composer update

To run the app:

bash
make up

To open the running app in your default browser:

bash
make open

To stop the app:

bash
make down

The application is available at http://localhost.

Other make commands are available in the Makefile and can be listed with:

bash
make help

Directory structure

The application template has the following structure:

…

Testing

The template comes with ready to use Codeception configuration. To execute tests, in local installation run:

bash
./vendor/bin/codecept build

APP_ENV=test ./yii serve > ./runtime/yii.log 2>&1 &
./vendor/bin/codecept run

For Docker:

bash
make codecept build
make codecept run

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

bash
./vendor/bin/psalm

or, using Docker:

bash
make psalm

Support

If you need help or have a question, check out Yii Community Resources.

License

The Yii3 web application template is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Follow updates

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPhacktoberfestproject-templateyii3

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言