buqiu/enterprise_wechat

official lib of enterprise wechat api https://work.weixin.qq.com/api/doc
1,482
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

doctrine/dbal

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

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released PHP Laravel License
v2.0.6 ^8.1 ^10.0 MIT
v2.0.5 ^8.1 ^10.0 MIT
v2.0.4 ^8.1 ^10.0 MIT
v2.0.3 ^8.1 ^10.0 MIT
v2.0.2 ^8.1 ^10.0 MIT