Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
IlCallo committed Mar 5, 2020
1 parent a79f291 commit e61d7e9
Show file tree
Hide file tree
Showing 6 changed files with 1,891 additions and 856 deletions.
51 changes: 47 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,99 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

## [2.3.0] - 2020-03-05

### Added

- Added support for L7+

### Changed

- Updated dev dependencies and tests

### Removed

- Removed support for L5

## [2.2.0] - 2019-10-08

### Added

- Added support for L6+

### Changed

- Updated CHANGELOG to adhere to "Keep a Changelog" initiative

## [2.1.0] - 2019-06-03

### Added

- Added support for L5.8

## [2.0.0] - 2018-09-24

### Added

- Added support for L5.7

### Removed

- Removed support for L5.5

## [1.0.1] - 2018-04-22

### Added

- Updated CHANGELOG to cover undocumented releases

### Changed
- Removed dependency and consequentially php-intl extension: it gives some problems on High Sierra development environment. URL check is now delegated to AWS SDK.

- Removed dependency and consequentially php-intl extension: it gives some problems on High Sierra development environment. URL check is now delegated to AWS SDK.

## [1.0.0] - 2018-02-19

### Added

- Add support for L5.6

## [0.1.5] - 2018-02-18

### Fixed

- getExpirationTimestamp now returns int value instead of string to overcome an AWS SDK bug

## [0.1.4] - 2018-02-13

### Changed

- Refactored tests
- Switched to UrlSigner class instead of CloudFrontClient

## [0.1.3] - 2018-02-09

### Changed
- $expiration default behaviour moved to internal `sign()` method instead of helper

- \$expiration default behaviour moved to internal `sign()` method instead of helper

## [0.1.2] - 2018-02-09

### Fixed

- Fixed config publishing

### Changed
- $expiration parameter of `sign()` helper now defaults to the value defined in the configuration file when not defined

- \$expiration parameter of `sign()` helper now defaults to the value defined in the configuration file when not defined

## [0.1.1] - 2018-02-09

### Added

- Added `sign()` helper

## [0.1.0 - 2018-02-09

- Initial release
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Create CloudFront signed URLs in Laravel 5.6+
Easy to use Laravel 5.6+ wrapper around the official AWS PHP SDK which allows to sign URLs to access Private Content through CloudFront CDN

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](https://github.com/spatie/laravel-url-signer)

Expand Down Expand Up @@ -63,13 +64,17 @@ return [

];
```

## Usage

### Signing URLs

URL's can be signed with the `sign` method:

```php
CloudFrontUrlSigner::sign('https://myapp.com/resource');
```

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:

Expand All @@ -80,6 +85,7 @@ CloudFrontUrlSigner::sign('https://myapp.com/resource', 5);

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:

```php
// This URL will be valid up until 2 hours from the moment it was generated.
CloudFrontUrlSigner::sign('https://myapp.com/resource', Carbon\Carbon::now()->addHours(2) );
Expand All @@ -91,7 +97,7 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recen

## Testing

``` bash
```bash
$ vendor/bin/phpunit
```

Expand Down
96 changes: 48 additions & 48 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
{
"name": "dreamonkey/laravel-cloudfront-url-signer",
"description": "Laravel 5.6+ wrapper around CloudFront canned signed URLs",
"keywords": [
"dreamonkey",
"laravel-cloudfront-url-signer",
"private content",
"cloudfront"
],
"homepage": "https://github.com/dreamonkey/laravel-cloudfront-url-signer",
"license": "MIT",
"authors": [
{
"name": "Paolo Caleffi",
"email": "[email protected]",
"homepage": "https://dreamonkey.com",
"role": "Developer"
}
],
"require": {
"php" : "^7.1.3",
"illuminate/support": ">=5.6.0",
"aws/aws-sdk-php": "^3.52"
},
"require-dev": {
"orchestra/testbench": "~3.4.4|~3.5.0|~3.6.0",
"phpunit/phpunit" : "^6.3|^7.0"
},
"autoload": {
"psr-4": {
"Dreamonkey\\CloudFrontUrlSigner\\": "src"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Dreamonkey\\CloudFrontUrlSigner\\Tests\\": "tests"
}
"name": "dreamonkey/laravel-cloudfront-url-signer",
"description": "Laravel 5.6+ wrapper around CloudFront canned signed URLs",
"keywords": [
"dreamonkey",
"laravel-cloudfront-url-signer",
"private content",
"cloudfront"
],
"homepage": "https://github.com/dreamonkey/laravel-cloudfront-url-signer",
"license": "MIT",
"authors": [
{
"name": "Paolo Caleffi",
"email": "[email protected]",
"homepage": "https://dreamonkey.com",
"role": "Developer"
}
],
"require": {
"php": "^7.1.3",
"illuminate/support": "^6.0|^7.0",
"aws/aws-sdk-php": "^3.52"
},
"require-dev": {
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.0|^9.0"
},
"autoload": {
"psr-4": {
"Dreamonkey\\CloudFrontUrlSigner\\": "src"
},
"extra": {
"laravel": {
"providers": [
"Dreamonkey\\CloudFrontUrlSigner\\CloudFrontUrlSignerServiceProvider"
],
"aliases": {
"CloudFrontUrlSigner": "Dreamonkey\\CloudFrontUrlSigner\\Facades\\CloudFrontUrlSigner"
}
}
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Dreamonkey\\CloudFrontUrlSigner\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"Dreamonkey\\CloudFrontUrlSigner\\CloudFrontUrlSignerServiceProvider"
],
"aliases": {
"CloudFrontUrlSigner": "Dreamonkey\\CloudFrontUrlSigner\\Facades\\CloudFrontUrlSigner"
}
}
}
}
Loading

0 comments on commit e61d7e9

Please sign in to comment.