https://github.com/thenbsp/Wechat
use Thenbsp\Wechat\Wechat; $o = new Wechat(APPID, APPSECRET); var_dump('AccessToken: '.$o->getAccessToken());