Using PHP AWS-SDK with Gozunga Object Storage
To use the AWS SDK S3 client with Gozunga's Cloud Storage service, configure the appropriate credentials, and then configure the AWS SDK client as follows.
Get your credentials within our Cloud Management Portal, under Access -> S3 Credentials.

On your server, set the corresponding credentials.
$ cat ~/.aws/credentials
[default]
aws_access_key_id = B____v4tEN81XQ7QU8EqPRW______x
aws_secret_access_key = O____gFCVUEePMxZaPcikXYEO______S
Then set up your S3Client() object as follows.
<?php
require 'vendor/autoload.php'; // Add this line to load Composer dependencies
use Aws\S3\S3Client;
use Aws\Exception\AwsException;
// Instantiate the S3 client
$s3Client = new S3Client([
'region' => 'SiouxFalls',
'version' => 'latest',
'endpoint' => 'https://cloud.fsd1.gozunga.com:6780',
'use_path_style_endpoint' => true,
'signature_version' => 'v4',
]);
try {
$result = $s3Client->listBuckets();
echo "Buckets in your account:\n";
foreach ($result['Buckets'] as $bucket) {
echo "- " . $bucket['Name'] . " (Created: " . $bucket['CreationDate']->format('Y-m-d H:i:s') . ")\n";
}
} catch (AwsException $e) {
// Output error message if fails
echo "Error: " . $e->getMessage() . "\n";
}
The output
$ php list-buckets.php
Buckets in your account:
- testbucket (Created: 2025-10-31 21:36:03)
Updated on: 31/10/2025
Thank you!