Include AWS SDK in PHP without composer


Download latest zip file from the bottom of this page

Copy zip file into your project folder and extract zip file contents.

Add below line to include autoloader file of AWS

require ‘protected/components/aws/aws-autoloader.php’; // change path to match your project settings

Load required extensions, in order to user S3 use below ones
$s3 = new Aws\S3\S3Client([
‘version’ => ‘latest’,
‘region’ => ‘eu-west-1’, // pick the region
‘credentials’ => [
‘key’ => ‘{add your key here}’,
‘secret’ => ‘{add secret key here}’,
‘scheme’ => ‘http’

$s3 = $s3->listBuckets();


Leave a Reply

Your email address will not be published. Required fields are marked *