1. Go to this page and download the library: Download devtoolboxuk/aws 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/ */
devtoolboxuk / aws example snippets
$this->aws = new aws();
$this->s3 = $this->aws->s3();
$this->s3->setBucket('test-bucket');
$list = $this->s3->listObjects('folder');
foreach ($list as $object) {
print_r($object['Key']);
}