Download the PHP package unisharp/s3-presigned without Composer
On this page you can find all versions of the php package unisharp/s3-presigned. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package s3-presigned
AWS S3 Presigned SDK
Approach
Traditionally to upload a file from users to a private S3 bucket needs two internet connections. One is from client to your own server, and the other is from your server to S3 bucket. Using pre-signed upload can solve this problem. Your server issues pre-signed upload url for client to upload in advance, and the client can upload his file to S3 bucket directly within an authorized time period. This package wraps S3 pre-signed api for PHP and Laravel.
Installation
Laravel 5
Setup
Add ServiceProvider and Facade in app/config/app.php
.
It supports package discovery for Laravel 5.5.
Configuration
Add settings to .env file.
APIs
- $key: your s3 file key, a prefix will be prepended automatically.
- $minutes: expire time for the pre-signed url.
- $options: see AWS docs to find more.
-
$guzzle: set true if you want to get a guzzle instance instead of string.
- $minutes: expire time for the pre-signed url.
- $policies: see AWS docs to find more.
- $defaults: default key-values you want to add to form inputs.
for more detail, please see: AWS docs
All versions of s3-presigned with dependencies
aws/aws-sdk-php Version ^3.31
illuminate/support Version >=5.0.0
guzzlehttp/guzzle Version ^6.2
mockery/mockery Version 0.9.*