lizhen_gitee 464b277bee 安装环信php server sdk,composer require maniac/easemob-php 1 rok pred
..
src 464b277bee 安装环信php server sdk,composer require maniac/easemob-php 1 rok pred
tests d2cd22c475 加上忽略掉的 3 rokov pred
.gitignore d2cd22c475 加上忽略掉的 3 rokov pred
.php_cs d2cd22c475 加上忽略掉的 3 rokov pred
.travis.yml d2cd22c475 加上忽略掉的 3 rokov pred
LICENSE d2cd22c475 加上忽略掉的 3 rokov pred
README.md d2cd22c475 加上忽略掉的 3 rokov pred
composer.json d2cd22c475 加上忽略掉的 3 rokov pred
phpunit.xml d2cd22c475 加上忽略掉的 3 rokov pred

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 # 线上域名