Skip to content

frehaiku/wechatAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wechatAPI

A common wechat package,including basic The Individual Subscription Account implements

Install

git clone https://github.com/frehaiku/wechatAPI.git

cd wechatAPI

# copy WechatSubscribedAccountSDK.class.php to your project

Usage

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

About

A common wechat package,including The Individual Subscription Account implements【个人订阅号微信开发接口轮子】

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages