You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Your Name
d9f117704c
|
9 months ago | |
---|---|---|
.. | ||
src | 9 months ago | |
tests | 9 months ago | |
.gitignore | 9 months ago | |
.php_cs | 9 months ago | |
.travis.yml | 9 months ago | |
LICENSE | 9 months ago | |
README.md | 9 months ago | |
composer.json | 9 months ago | |
phpunit.xml | 9 months ago |
README.md
EasyWeChat Composer Plugin
Usage
Set the type
to be easywechat-extension
in your package composer.json file:
{
"name": "your/package",
"type": "easywechat-extension"
}
Specify server observer classes in the extra section:
{
"name": "your/package",
"type": "easywechat-extension",
"extra": {
"observers": [
"Acme\\Observers\\Handler"
]
}
}
Examples
Server Delegation
目前仅支持 Laravel
-
在
config/app.php
中添加EasyWeChatComposer\Laravel\ServiceProvider::class
-
在本地项目的
.env
文件中添加如下配置:
EASYWECHAT_DELEGATION=true # false 则不启用
EASYWECHAT_DELEGATION_HOST=https://example.com # 线上域名