1. Go to this page and download the library: Download rdisme/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/ */
rdisme / wechat example snippets
use Rwechat\Offiaccount\AccessToken;
$wxconfig = array(
'appid' => '22222',
'appsecret' => '3333'
);
$token = new AccessToken($wxconfig);
$token = $token->send();
var_dump($token);