PHP code example of loouss / filesystem-huawei-obs

1. Go to this page and download the library: Download loouss/filesystem-huawei-obs 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/ */

    

loouss / filesystem-huawei-obs example snippets




$adapter = new Adapter([
    'key' => '',
    'secret' => '',
    'endpoint' => '',
    'ssl_verify' => false,
    'max_retry_count' => '',
    'socket_timeout' => '',
    'connect_timeout' => '',
    'chunk_size' => ''
]);
$flysystem = new Filesystem($adapter);
$flysystem->write('test.json', Json::encode(['id' => uniqid()]));