PHP code example of worm_of_time / wechat_tools
1. Go to this page and download the library: Download worm_of_time/wechat_tools 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/ */
worm_of_time / wechat_tools example snippets
$wechat = new MiniProgram;
$wechat->setAppId(APP_ID)
->setAppSecret(APP_SECRET);
# 获取access_token
$result = $wechat->get_access_token();