1. Go to this page and download the library: Download chenall/phalapi-weixin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
//可以直接扩展\PhalApi\WeiXin\Server,也可以完全自己实现
class Server extends \PhalApi\WeiXin\Server {
public function text($message){
.....
//消息类型 可以返回各种消息类型,比如图片,文本等,具体的使用方法参考说明文档
return 要返回给消息发送者的信息;
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.