PHP code example of yuyue8 / tp-wechat
1. Go to this page and download the library: Download yuyue8/tp-wechat 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/ */
yuyue8 / tp-wechat example snippets
public function server(Yuyue8\TpWechat\interfaces\WechatInterface $wechat)
{
ob_clean();
return $wechat->server();
}
public function server(Yuyue8\TpWechat\interfaces\WechatPayInterface $pay)
{
ob_clean();
return $pay->server();
}