PHP code example of lialosiu / socialite-china

1. Go to this page and download the library: Download lialosiu/socialite-china 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/ */

    

lialosiu / socialite-china example snippets


'weibo'    => [
    'client_id'     => env('WEIBO_APP_KEY', ''),
    'client_secret' => env('WEIBO_APP_SECRET', ''),
    'redirect'      => env('WEIBO_CALLBACK_URL', ''),
],

'qq'       => [
    'client_id'     => env('QQ_APP_KEY', ''),
    'client_secret' => env('QQ_APP_SECRET', ''),
    'redirect'      => env('QQ_CALLBACK_URL', ''),
],

'weixin'       => [
    'client_id'     => env('WEIXIN_APP_KEY', ''),
    'client_secret' => env('WEIXIN_APP_SECRET', ''),
    'redirect'      => env('WEIXIN_CALLBACK_URL', ''),
],

SocializeChina::with('weibo')->user('UserWeiboToken')