| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 74 | All time:  10,216 This week: 524 | ||||
| Version | License | PHP version | Categories | |||
| wechat 1.0.0 | Custom (specified... | 5 | PHP 5, Web services, Chat | 
| Description | Author  | ||||||||
This package can be used to exchange messages with WeChat users.  | 
  | 
<p align="center"><img width="320" src="https://xy.zuggr.com/file/angel_wechat.jpg"></p>
Angel?? ???Angel??????????
????Composer??Angel??:
composer create-project angel-project/framework .
????????:
composer require angel-project/wechat
  
???????/?????
  build::post('your/url',function(){
    $wx = new angel\wechat($appid,$secret,$token); //?????object
    $wx->listen('text','hi',function($input,$wx){
      $wx->return('text',[
        'to' => $input->FromUserName,
        'content' => 'hello!'
      ]);
    }); //?????hi???????hello!
    $wx->listen('event','subscribe',function($input,$wx){
      $wx->return('news',[
        'to' => $input->FromUserName,
        'articles' => [[
          'title' => 'hi!',
          'description' => 'long time no see',
          'picurl' => 'yoururl.com/img.jpg',
          'url' => 'yoururl.com'
        ]]
      ]); //????
    }); //???????????????
    $wx->run(); //????
  });
listen()???????? - ?????????text???????event?????? - ?????????????????????????SCAN?????subscribe?????CLICK???????????????????????????'empty'? - ??????????function?????????????object?????????????????????????????object???function???????????
  $wx = new angel\wechat($appid,$secret,$token); //?????object
  $menu = [[
    'type' => 'click',
    'name' => '????',
    'key' => 'welcome'
  ]]; //????click???????????????????????
  $at = $wx->access_token();  //??access token
  $wx->menu($at,$menu); //????
Angel WeChat is a WeChat plugin based on Angel Framework
First, install Angel Framework with Composer using the following command:
composer create-project angel-project/framework .
Then, install Angel WeChat package:
composer require angel-project/wechat
| File | Role | Description | 
|---|---|---|
| Data | Auxiliary data | |
| Lic. | License text | |
| Doc. | Documentation | |
| Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.