coupon-admin/vendor/easywechat-composer/easywechat-composer
wangxinglong 82f5a8f3f5 初始化 2021-11-18 17:57:04 +08:00
..
src 初始化 2021-11-18 17:57:04 +08:00
tests 初始化 2021-11-18 17:57:04 +08:00
.gitignore 初始化 2021-11-18 17:57:04 +08:00
.php_cs 初始化 2021-11-18 17:57:04 +08:00
.travis.yml 初始化 2021-11-18 17:57:04 +08:00
LICENSE 初始化 2021-11-18 17:57:04 +08:00
README.md 初始化 2021-11-18 17:57:04 +08:00
composer.json 初始化 2021-11-18 17:57:04 +08:00
phpunit.xml 初始化 2021-11-18 17:57:04 +08:00

README.md

EasyWeChat Composer Plugin

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads License

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

  1. config/app.php 中添加 EasyWeChatComposer\Laravel\ServiceProvider::class

  2. 本地项目.env 文件中添加如下配置:

EASYWECHAT_DELEGATION=true # false 则不启用
EASYWECHAT_DELEGATION_HOST=https://example.com # 线上域名