PHP code example of sfneal / aws-s3-helpers

1. Go to this page and download the library: Download sfneal/aws-s3-helpers 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/ */

    

sfneal / aws-s3-helpers example snippets


S3_KEY=********************
S3_SECRET=****************************************
S3_REGION=*********
S3_BUCKET=******************
json
"autoload": {
    "files": [
      "vendor/sfneal/aws-s3-helpers/src/Helpers/s3-helpers.php"
    ]
},
 php
php artisan vendor:publish --provider="Sfneal\Helpers\Aws\S3\Providers\S3HelpersServiceProvider"
 php
's3' => [
    'driver' => 's3',
    'key' => env('S3_KEY'),
    'secret' => env('S3_SECRET'),
    'region' => env('S3_REGION'),
    'bucket' => env('S3_BUCKET'),
],