Skip to main content

How do I use the AWS SDK for PHP with Tenbyte T2?

You can take advantage of Tenbyte T2 Cloud Storage using the AWS SDK for PHP alongside the Tenbyte S3-Compatible API.
Important: Pre-Signed URLs that are generated with the PHP SDK are not currently compatible with Tenbyte T2.

Prerequisites

When you create a Tenbyte T2 bucket, select the Allow List All Bucket Names checkbox. This option is required for the List Buckets operation. If you did not select this when you created your application key, you must create a new application key with this permission enabled.

Configuration

First, configure your Tenbyte T2 credentials in the ~/.aws/credentials file:

Example: Creating a Bucket

This example shows how you create a bucket using the AWS SDK for PHP with a profile named tenbyte in the ~/.aws/credentials file.

Installation

To use the AWS SDK for PHP, install it via Composer:
The Tenbyte S3-Compatible API allows thousands of integrations to natively work with Tenbyte T2 Cloud Storage. If you are new to the Tenbyte S3-Compatible API, refer to the Getting Started guide. If you have issues using this SDK with Tenbyte T2, contact us at support@tenbyte.io.