PHP code example of yjtec / laravel-tripartite-auth
1. Go to this page and download the library: Download yjtec/laravel-tripartite-auth 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/ */
yjtec / laravel-tripartite-auth example snippets
$app = TripartiteAuth::WeChatOpenPlatform();//创建实例
$token = $app->getAccessToken($code);//根据code获取Token信息
$user_info = $app->getUserByToken($token);//根据Token信息获取用户信息