Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

app

> 编程语言
Open source

Yii3 web application template

374 stars0 likes1 views
WebsiteGitHub

About

Yii3 web application template

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPhacktoberfestproject-templateyii3

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

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