# 安装

## 环境要求

* PHP >= 7.3
* Composer >= 2
* Node.js >= 14

## 安装

```shell
composer create-project umono/yaa-yii2
```

在确保项目安装后，需要进入该项目中运行 `php yii init`

```shell
cd yaa-yii2 && php yii init
```

这一指令将会初始化一些yii2后台所需的静态资源，如：gii2、debugtools等页面所需的资源。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yaa.docs.speaks.life/kai-shi/an-zhuang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
