1. Go to this page and download the library: Download benmajor/sirv-s3-client 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/ */
benmajor / sirv-s3-client example snippets
# Include Composer autoloader:
ient;
$client = new SirvS3Client(
'SIRV_S3_BUCKET',
'SIRV_S3_KEY',
'SIRV_S3_SECRET'
);
if( $client->testConnection() ) {
# Connection is valid and ready.
} else {
# Something went wrong with the connection.
}