PHP code example of linshunwei / danhar-yun

1. Go to this page and download the library: Download linshunwei/danhar-yun 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/ */

    

linshunwei / danhar-yun example snippets


'providers' => [
    //...
    Linshunwei\DanharYun\DanharYunServiceProvider::class,
    //...
],

'host' => env('DANHAR_YUN_HOST',''), //会员服务器
'admin_host' => env('DANHAR_YUN_ADMIN_HOST',''), //管理后台服务器
'token_url' => env('DANHAR_YUN_OAUTH_TOKEN_URL',''),
'authorization_url' => env('DANHAR_YUN_OAUTH_AUTHORIZATIION_URL',''),
'callback_url' => env('DANHAR_YUN_CALLBACK_URL',''), //回调服务器
'client_id' => env('DANHAR_YUN_CLIENT_ID',''),
'client_secret' =>  env('DANHAR_YUN_CLIENT_SECRET',''),
'log_debug' =>  env('DANHAR_YUN_LOG_DEBUG',false), //是否开启日志 /logs/danhar_yun目录

    $yun = new DanharYun();
    $res = $yun->getParameterItem('xxx');
shell
php artisan vendor:publish --provider="Linshunwei\DanharYun\DanharYunServiceProvider"