📦 企业微信开发接口SDK.
- PHP >= 7.2
- Composer
- openssl 拓展
- fileinfo 拓展(素材管理模块需要用到)
$ composer require "uutan/work-wechat" @dev
基本使用(以企业内部开发为例):
<?php
use WorkWechat\Factory;
$options = [
'corp_id' => 'wx3cf0f39249eb0exxx',
'agent_id' => '49000091',
'secret' => 'xxx',
];
$app = Factory::work($options);
$server = $app->server;
$user = $app->user;
$server->serve()->send();
MIT