Create presigned url for S3 object
- for uploading an object to S3 via Put
- for get presigned URL for already uploaded object to S3
You can install the package via composer:
composer require svikramjeet/s3-presigned
You can publish the config file with:
php artisan vendor:publish --tag="s3-presigned-config"
$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'];
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.