// Report all PHP errors error_reporting(-1);
ini_set("display_errors", 1);
AWS S3 Client Methods http://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.S3.S3Client.html
AWS S3 Client Configuration: https://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
AWS Regions and Endpoints: http://docs.aws.amazon.com/general/latest/gr/rande.html
Working with Folders: http://docs.aws.amazon.com/AmazonS3/latest/UG/FolderOperations.html
For more details: http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-s3.html#uploading-a-file
I've used Composer to autoload it: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html