PHP utility to upload folder and files to Amazon S3

Simple and command line utility to upload public folder and files to Amazon S3 Storage for public read

Share on Social Media

PHP utility to upload folder and files to Amazon S3

Screenshots


Details


PHP S3 Uploader:

    • upload files
    • Upload complete folder
    • Support nested folders

Installation:

Execute the following command to install composer at project root directory

composer install

Then, Modify configuration values at config.php as per your AWS credentials

return [
's3' => [
'credentials' => [
'key' => 'YOUR AWS S3 KEY',
'secret' => 'YOUR AWS S3 SECRET',
],
'region' => 'YOUR AWS S3 REGION',
'bucket' => 'YOUR AWS S3 BUCKET'
],
];

Then, use following command to upload folder and its files(recursively) to S3

php app.php upload:s3 'YOUR DIRECTORY PATH' 

Example:
php app.php upload:s3 '/home/ubuntu/demos/'



Version History


v1.0

Released On: February 16, 2018


Reviews


Not yet reviewed

Question or Comment


No support questions or comments