overtrue / wechat
This package is abandoned and no longer maintained.
The author suggests using the w7corp/easywechat package instead.
微信SDK
Fund package maintenance!
6.19.1
2026-04-03 13:00 UTC
Requires
- php: >=8.0.2
- ext-curl: *
- ext-fileinfo: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- nyholm/psr7: ^1.5
- nyholm/psr7-server: ^1.0
- overtrue/socialite: ^3.5.4|^4.0.1
- psr/http-client: ^1.0
- psr/simple-cache: ^1.0|^2.0|^3.0
- symfony/cache: ^5.4|^6.0|^7.0|^8.0
- symfony/http-client: ^5.4|^6.0|^7.0|^8.0
- symfony/http-foundation: ^5.4|^6.0|^7.0|^8.0
- symfony/mime: ^5.4|^6.0|^7.0|^8.0
- symfony/polyfill-php81: ^1.25
- symfony/psr-http-message-bridge: ^2.1.2|^6.4.0|^7.1|^8.0
- thenorthmemory/xml: ^1.0
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- laravel/pint: ^1.2
- mikey179/vfsstream: ^1.6
- mockery/mockery: ^1.4.4
- phpstan/phpstan: ^1.0 | ^2
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.2|^6|^7|^8.0
Conflicts
This package is auto-updated.
Last update: 2026-04-16 11:23:19 UTC
README
📦 一个 PHP 微信开发 SDK,开源 SaaS 平台提供商 微擎 旗下开源产品。
环境需求
- PHP >= 8.0.2
- Composer >= 2.0
安装
composer require w7corp/easywechat
使用示例
基本使用(以公众号服务端为例):
<?php use EasyWeChat\OfficialAccount\Application; $config = [ 'app_id' => 'wx3cf0f39249eb0exxx', 'secret' => 'f1c242f4f28f735d4687abb469072xxx', 'aes_key' => 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG', 'token' => 'easywechat', ]; $app = new Application($config); $server = $app->getServer(); $server->with(fn() => "您好!EasyWeChat!"); $response = $server->serve();
文档和链接
❤️ 支持我
如果你喜欢我的项目并想支持它,点击这里 ❤️
可爱的贡献者们
License
MIT