PHP code example of bgprov / lugege

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

    

bgprov / lugege example snippets



$defaultConfig =  [
            'http' => [
                'timeout' => 30,
                'base_uri' => 'http://app.10085.shop/'
            ],
            'pem'=>[
                'path'=>'xxxx\xxx\xxx',
                'file_name'=>'private.key'
            ],
            'user_id'=>1000,
        ];;

$app = Factory::make($config);
//可以只传['user_id'=>1001] 不传
$response = $app->sub_data->get(); 
 #check get_mobil get_pack
#返回collect 数组