# Yii

Yii is a pre-packaged starter kit for the Yii PHP framework, enabling developers to quickly launch secure PHP websites and applications with minimal manual configuration. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5937/yii

## Description

Yii is a pre-packaged starter kit for the Yii PHP framework, enabling developers to quickly launch secure PHP websites and applications with minimal manual configuration.

## Platform availability

Available on 0 of 10 platforms.

## Health score

77/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 16 days ago)
- Popular: 83 (14,274 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 75 (no serious findings, CI, tests, OpenSSF Scorecard 4.4/10)

## Links

- Docker Hub: https://hub.docker.com/r/shinsenter/yii
- Official website: https://code.shin.company
- GitHub: https://github.com/yiisoft/yii2

## Common questions

### What must be done before starting a Docker-based Yii project?

Copy .env.example to .env first, because Yii reads local settings such as database details from that file. If the required settings are missing, the app may fail to start or connect.

### Why can my normal user not edit files after Docker project creation?

Run the chown command from the docs so your normal user owns the project files. Without this, your account may be blocked from editing or installing files and later commands can fail.

### How should the app port be configured with a browser or reverse proxy?

Start the local server with ./yii serve --port=80 or another chosen port such as 8080. The app only answers on the port you specify, so the browser or reverse proxy must use that same port.

### How do Yii assets such as CSS and JavaScript behave?

Yii assets work as web-accessible files. They can include CSS, JavaScript, images, or videos.

---
Source: Our Local Host (https://ourlocalhost.com/app/5937/yii), the self-hosted and open-source app directory.
