https://github.com/stoneworld/wechat
Deprecated 微信公众平台企业号 SDK
https://github.com/stoneworld/wechat
laravel php sdk wechat
Last synced: 3 months ago
JSON representation
Deprecated 微信公众平台企业号 SDK
- Host: GitHub
- URL: https://github.com/stoneworld/wechat
- Owner: stoneworld
- License: mit
- Created: 2016-03-07T03:03:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-13T08:20:07.000Z (over 8 years ago)
- Last Synced: 2025-03-05T19:41:51.894Z (about 1 year ago)
- Topics: laravel, php, sdk, wechat
- Language: PHP
- Homepage:
- Size: 70.3 KB
- Stars: 79
- Watchers: 9
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wechat
### 安装
环境要求:PHP >= 5.3.0
使用 `composer`
`composer require "stoneworld/wechat:~2.0" -vvv`
手动安装
下载 本安装包
然后引入根目录的autoload.php即可:
```
'stoneworld1992', //填写应用接口的Token
'encodingaeskey'=>'o1wze3492xoUVIc9ccTLJczO3BQ5pLfiHcKwtDEdqM9',//填写加密用的EncodingAESKey
'appid'=>'wx8ac123b21f53dera7', //填写高级调用功能的appid
'appsecret'=>'4ZDHIETJ6e0oENlEkRhYwdKcPcRjCkgQkuHtQTJ12ZhWHESowrJqS9', //填写高级调用功能的密钥
'agentid'=>'5', //应用的id
);
$server = new Server($options);
$server->on('message', function($message){
return "您好!";
});
// 您可以直接echo 或者返回给框架
echo $server->server();
```
更多请参考文档[wiki](https://github.com/stoneworld/wechat/wiki/%E5%86%99%E5%9C%A8%E5%89%8D%E9%9D%A2)。
### 致谢
特别感谢超哥 [安正超 @overtrue](https://github.com/overtrue) 的 EasyWeChat 微信 SDK 为企业微信 SDK 开发带来的指引。
### License
MIT