PHP code example of yunify / qingstor-sdk
1. Go to this page and download the library: Download yunify/qingstor-sdk 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/ */
yunify / qingstor-sdk example snippets
use QingStor\SDK\Service\QingStor;
use QingStor\SDK\Config;
$config = new Config('ACCESS_KEY_ID_EXAMPLE','SECRET_ACCESS_KEY_EXAMPLE');
$service = new QingStor($config);
$bucket = $service->Bucket('test_bucket', 'pek3a');
$res = $bucket->listObjects();
var_dump($res->keys);