buqiu/enterprise_wechat

official lib of enterprise wechat api https://work.weixin.qq.com/api/doc
1,467
Install
composer require buqiu/enterprise_wechat
Latest Version:v2.0.6
PHP:^8.1
License:MIT
Last Updated:Feb 19, 2025
Links: GitHub  ·  Packagist
Maintainer: buqiu

一个基于 Laravel 开发的企业微信 SDK

环境要求

  • PHP >= 8.1
  • Laravel >= 10

安装

安装扩展包
composer require buqiu/enterprise_wechat
发布迁移文件
php artisan vendor:publish --tag=enterprise_wechat-migrations

目录

账号管理

为了方便维护企微账号的管理, 本扩展包提供了 Artisan 命令行方式管理企微账号。文档参考

账号的连接切换

本扩展包提供了 connect 方法,用于动态连接切换企微账号, 连接切换方式有如下两种:

使用 id 连接切换

EnterpriseWechatFacade::connect(id: 'id_xxx');

使用 code 连接切换

EnterpriseWechatFacade::connect(code: 'tag_xxx');

企微开发API

对接使用此部分文档开发

企微开发主要是同步企微数据入库操作, 用于管理查询企微数据。

前置条件

账号连接切换

使用示例

企业微信API

在管理企微数据的同时,为了兼容企微的 API, 扩展包提供了 api() 方法,用于直接调用企微的 API 接口。

前置条件

账号连接切换

使用示例

Related Packages

gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444