Download the PHP package godrealms/wechat-php-sdk without Composer
On this page you can find all versions of the php package godrealms/wechat-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download godrealms/wechat-php-sdk
More information about godrealms/wechat-php-sdk
Files in godrealms/wechat-php-sdk
Download godrealms/wechat-php-sdk
More information about godrealms/wechat-php-sdk
Files in godrealms/wechat-php-sdk
Vendor godrealms
Package wechat-php-sdk
Short Description A PHP SDK for WeChat Official Account and Mini Programs
License MIT
Homepage https://github.com/godrealms/WeChat-PHP-SDK
Package wechat-php-sdk
Short Description A PHP SDK for WeChat Official Account and Mini Programs
License MIT
Homepage https://github.com/godrealms/WeChat-PHP-SDK
Please rate this library. Is it a good library?
Informations about the package wechat-php-sdk
WeChat PHP SDK
一个用于集成微信公众平台和小程序的 PHP SDK。该库简化了与微信 API 的交互,包括 OAuth 授权、卡券管理、消息处理和支付功能。
功能特性
- OAuth 授权:生成授权 URL,获取访问令牌,并获取用户信息。
- 卡券管理:创建、分发和兑换卡券。
- 消息处理:处理和响应来自微信公众平台的消息。
- 支付模块:支持微信支付的基础功能,包括JSAPI支付。
- 工具类:包括缓存、日志、签名生成和 XML 处理工具。
环境要求
- PHP >= 7.4
ext-curl和ext-json扩展- 用于 HTTP 请求的 Guzzle
- PSR-4 自动加载
安装
使用 Composer 安装 SDK:
项目结构
使用方法
1. 初始化配置
2. OAuth 授权
3. 卡券管理
4. JSAPI支付
在前端页面中使用JSAPI支付参数调起微信支付:
测试
使用 PHPUnit 运行单元测试:
或直接运行:
贡献
欢迎提交 Issue 或 Pull Request 来改进本项目。请确保代码符合 PSR-12 规范。
开源协议
本项目基于 MIT License 开源。
作者
由 Endorphins 开发。如有任何疑问,请通过 [email protected] 联系我们。
链接
- GitHub: godrealms/WeChat-PHP-SDK
- 文档: 微信官方文档
All versions of wechat-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
psr/log Version ^1.1
guzzlehttp/guzzle Version ^6.0
ext-json Version *
ext-curl Version *
ext-libxml Version *
ext-simplexml Version *
psr/log Version ^1.1
guzzlehttp/guzzle Version ^6.0
ext-json Version *
ext-curl Version *
ext-libxml Version *
ext-simplexml Version *
The package godrealms/wechat-php-sdk contains the following files
Loading the files please wait ...