PHP code example of hughcube / laravel-alioss

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

    

hughcube / laravel-alioss example snippets


return [
    'disks' => [
        'alioss' => [
            'driver'          => 'alioss',
            'bucket'          => env('ALIOSS_BUCKET'),
            'uploadBaseUrl'   => env('ALIOSS_UPLOAD_BASE_URL'),
            'cdnBaseUrl'      => env('ALIOSS_CDN_BASE_URL'),
            'prefix'          => env('ALIOSS_PREFIX'),
            'acl'             => env('ALIOSS_ACL'),
            
            'accessKeyId'     => env('ALIOSS_ACCESS_KEY_ID'),
            'accessKeySecret' => env('ALIOSS_ACCESS_KEY_SECRET'),
            'endpoint'        => env('ALIOSS_ENDPOINT'),
            'isCName'         => env('ALIOSS_IS_CNAME'),
            'securityToken'   => env('ALIOSS_SECURITY_TOKEN'),
            'requestProxy'    => env('ALIOSS_REQUEST_PROXY'),
        ],
    ]
];