2017 © Pedro Peláez
 

library wechat-sdk

An easy-use sdk for wechat developing, following the official documentation.

image

luojia/wechat-sdk

An easy-use sdk for wechat developing, following the official documentation.

  • Sunday, February 19, 2017
  • by summer1914
  • Repository
  • 1 Watchers
  • 5 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

wechat-sdk-packByComposer

Wechat SDK (not production ready)., (*1)

Install

``` bash composer require luojia/wechat-sdk, (*2)


## Quick Start ```php use Wechat\Wechat; $options = array( 'token'=>'tokenaccesskey', //key 'encodingaeskey'=>'encodingaeskey', //EncodingAESKey 'appid'=>'wxdk1234567890', //app id 'appsecret'=>'xxxxxxxxxxxxxxxxxxx' //填写高级调用功能的密钥 ); $testObj = new Wechat($options); $testObj->valid(); $type = $testObj->getRev()->getRevType(); switch($type) { case Wechat::MSGTYPE_TEXT: $testObj->text("hello, I'm wechat")->reply(); exit; break; case Wechat::MSGTYPE_EVENT: /** code **/ break; case Wechat::MSGTYPE_IMAGE: /** code **/ break; default: $testObj->text("help info")->reply(); }

License

MIT, (*3)

函数可基本按照官方文档的规律调用。详细中文文档近期将补上, (*4)

The Versions

19/02 2017

dev-master

9999999-dev

An easy-use sdk for wechat developing, following the official documentation.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Luo Jia