PHP code example of githen / laravel-percent

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

    

githen / laravel-percent example snippets



return [
    /*
    |--------------------------------------------------------------------------
    | 百分点配置
    |--------------------------------------------------------------------------
    |
    */
    // 登录信息
    'name' => 'admin',
    'password' => '111111',
    'disk' => 'local',
    'auth_file' => 'app/data/percent/admin.txt',// 每个账号的auth_file不能相同
    'sub_account' => [
        10 => [
            'name' => 'admin1',
            'password' => '111111',
            'disk' => 'local',
            'auth_file' => 'app/data/percent/admin1.txt', 
        ],
    ]
    
];