PHP code example of svikramjeet / s3-presigned

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

    

svikramjeet / s3-presigned example snippets


$s3Presigned = new Svikramjeet\S3Presigned\S3Presigned();
echo $s3Presigned->createPresignedForGetRequest($request)['presigned_url'];

$s3Presigned = new Svikramjeet\S3Presigned\S3Presigned();
echo $s3Presigned->createPresignedForPostRequest($request)['presigned_url'];

$s3Presigned = new Svikramjeet\S3Presigned\S3Presigned();
echo $s3Presigned->createPresignedForPutRequest($request)['presigned_url'];
bash
php artisan vendor:publish --tag="s3-presigned-config"