2017 © Pedro Peláez
 

library wechat

wechat sdk

image

luoyt/wechat

wechat sdk

  • Friday, October 28, 2016
  • by luoyt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

微信公众平台开发

微信开发文档, (*1)

自动处理代码例子:blush:

``` php $options['token'] = "123456"; $options['appid'] = ''; $options['secret'] = ''; $options['access_token'] = ''; $wechat = new Wechat($options); if(isset($_GET['echostr'])){ $wechat->valid(); //检验signature代码 }else{ $request = $wechat->request(); // 自动回复处理 if($request['msgtype']=='event'){ //事件处理 $openid = $request['fromusername']; if($request['event']=='subscribe'){ //关注事件, (*2)

}elseif($request['event']=='unsubscribe'){ //取消关注事件

}elseif($request['event']=='SCAN'){  //扫码事件

}elseif($request['event']=='CLICK'){ //菜单点击事件

}

}else if($request['msgtype']=='text'){ //文本回复, (*3)

}else if($request['msgtype']=='voice'){ //语音回复, (*4)

} ```, (*5)

The Versions

28/10 2016

dev-master

9999999-dev

wechat sdk

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

by Avatar luoyt

28/10 2016

v1.2

1.2.0.0

wechat sdk

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

by Avatar luoyt