Download the PHP package dcodegroup/laravel-cloudfront-url-signer without Composer
On this page you can find all versions of the php package dcodegroup/laravel-cloudfront-url-signer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcodegroup/laravel-cloudfront-url-signer
More information about dcodegroup/laravel-cloudfront-url-signer
Files in dcodegroup/laravel-cloudfront-url-signer
Package laravel-cloudfront-url-signer
Short Description Laravel 5.6+ wrapper around CloudFront canned signed URLs
License MIT
Informations about the package laravel-cloudfront-url-signer
Create CloudFront signed URLs in Laravel 6+
Easy to use Laravel 6+ wrapper around the official AWS PHP SDK which allows to sign URLs to access Private Content through CloudFront CDN
Inspired by laravel-url-signer
This package can create canned policies signed URLs for CloudFront which expires after a given time. This is done by wrapping the AWS SDK method adding a Laravel-style configuration and accessibility.
This is how you can create signed URL that's valid for 30 days:
The output is compliant with CloudFront specifications
Installation
The package can be installed via Composer:
Configuration
The configuration file can optionally be published via:
This is the content of the file:
Usage
Signing URLs
URL's can be signed with the sign
method:
By default the lifetime of an URL is one day. This value can be change in the config-file. If you want a custom life time, you can specify the number of days the URL should be valid:
For fine grained control, you may also pass a DateTime
instance as the second parameter. The url
will be valid up to that moment. This example uses Carbon for convenience:
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-cloudfront-url-signer with dependencies
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
aws/aws-sdk-php Version ^3.52