1. Go to this page and download the library: Download quansitech/qs-easywechat 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/ */
quansitech / qs-easywechat example snippets
use Qs\EasyWechat\MiniProgram;
$mp = new MiniProgram();
/*
* 该方式必须在.env文件定义
* MINI_APPID
* MINI_APPSECRET
* MINI_MSG_TOKEN
* MINI_MSG_AESKEY
*/