https://github.com/frehaiku/wechatapi
A common wechat package,including The Individual Subscription Account implements【个人订阅号微信开发接口轮子】
https://github.com/frehaiku/wechatapi
wechat-framework wechat-sdk
Last synced: about 1 year ago
JSON representation
A common wechat package,including The Individual Subscription Account implements【个人订阅号微信开发接口轮子】
- Host: GitHub
- URL: https://github.com/frehaiku/wechatapi
- Owner: frehaiku
- License: mit
- Created: 2017-02-10T09:11:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T12:23:46.000Z (over 9 years ago)
- Last Synced: 2025-04-04T12:32:15.495Z (about 1 year ago)
- Topics: wechat-framework, wechat-sdk
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wechatAPI
> A common wechat package,including basic The Individual Subscription Account implements
## Install
```bash
git clone https://github.com/frehaiku/wechatAPI.git
cd wechatAPI
# copy WechatSubscribedAccountSDK.class.php to your project
```
## Usage
```php
include_once "WechatSubscribedAccountSDK.class.php"
$wechat = new WechatSubscribedAccountSDK();
$wechat->checkSignature();
$type = $wechat->getMsg()->getRecType();
switch($type) {
case WechatSubscribedAccountSDK::MSGTEXT:
$wechat->text('reply to you')->reply();
break;
case WechatSubscribedAccountSDK::MSGEVENT:
// ...
break;
}
```
## Lisence
MIT