wisdech/laravel-wework

Laravel 企业微信服务端接口实现

v1.1.0 2024-10-14 16:50 UTC

This package is auto-updated.

Last update: 2025-03-14 17:42:51 UTC


README

安装使用

#添加依赖
composer require wisdech/laravel-wework

Laravel项目中

#发布配置文件
php artisan vendor:publish --tag=wework-config
#在.env文件填写配置信息
WEWORK_CORP_ID=
WEWORK_AGENT_ID=
WEWORK_SECRET=
//使用Facade
use Wisdech\Wework\Facade\Wework

$loginUri=Wework::buildLoginUri(...);

在其他PHP项目中

$sdk=new Wisdech\Wework\WeworkSDK('CorpID','AgentID','Secret')

$loginUri=$sdk->buildLoginUri(...);