PHP code example of sbing / ali-oss

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

    

sbing / ali-oss example snippets


$ composer 

'oss' => [
    'driver' => 'oss',
    'access_id' => env('OSS_ACCESS_ID'),
    'access_key' => env('OSS_ACCESS_KEY'),
    'bucket' => env('OSS_BUCKET'),
    'endpoint' => env('OSS_ENDPOINT', null),
    'host' => env('OSS_HOST', null),
]