> For the complete documentation index, see [llms.txt](https://abnermouke.gitbook.io/abnermouke-supports/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abnermouke.gitbook.io/abnermouke-supports/qian-yan.md).

# 前言

👋 **全新php支持扩展包**

此扩展包由 Abnermouke <abnermouke@outlook.com> 开发并维护。

abnemrouke/supports 对所有PHP框架支持，只要可以使用compoer则可以正常使用扩展包。

安装方法：

```
composer require abnermouke/supports
```

一般在现有框架中无法自动加载扩展包的scripts，所以需在根目录 **composer.json** 中添加以下内容：

```json
"scripts": {
    "post-autoload-dump": [
        
        //其他框架自用脚本
        
        "Abnermouke\\Supports\\AbnermoukeSupportsEvents::autoload"
    ],
},
```

添加完成后请执行自动加载命令：

```bash
composer dump-autoload
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://abnermouke.gitbook.io/abnermouke-supports/qian-yan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
