Skip to content

Commit e61d7e9

Browse files
committed
chore: update deps
1 parent a79f291 commit e61d7e9

File tree

6 files changed

+1891
-856
lines changed

6 files changed

+1891
-856
lines changed

CHANGELOG.md

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,99 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
98
## [Unreleased]
9+
10+
## [2.3.0] - 2020-03-05
11+
12+
### Added
13+
14+
- Added support for L7+
15+
16+
### Changed
17+
18+
- Updated dev dependencies and tests
19+
20+
### Removed
21+
22+
- Removed support for L5
23+
24+
## [2.2.0] - 2019-10-08
25+
26+
### Added
27+
28+
- Added support for L6+
29+
1030
### Changed
31+
1132
- Updated CHANGELOG to adhere to "Keep a Changelog" initiative
1233

1334
## [2.1.0] - 2019-06-03
35+
1436
### Added
37+
1538
- Added support for L5.8
1639

1740
## [2.0.0] - 2018-09-24
41+
1842
### Added
43+
1944
- Added support for L5.7
2045

2146
### Removed
47+
2248
- Removed support for L5.5
2349

2450
## [1.0.1] - 2018-04-22
51+
2552
### Added
53+
2654
- Updated CHANGELOG to cover undocumented releases
2755

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

3160
## [1.0.0] - 2018-02-19
61+
3262
### Added
63+
3364
- Add support for L5.6
3465

3566
## [0.1.5] - 2018-02-18
67+
3668
### Fixed
69+
3770
- getExpirationTimestamp now returns int value instead of string to overcome an AWS SDK bug
3871

3972
## [0.1.4] - 2018-02-13
73+
4074
### Changed
75+
4176
- Refactored tests
4277
- Switched to UrlSigner class instead of CloudFrontClient
4378

4479
## [0.1.3] - 2018-02-09
80+
4581
### Changed
46-
- $expiration default behaviour moved to internal `sign()` method instead of helper
82+
83+
- \$expiration default behaviour moved to internal `sign()` method instead of helper
4784

4885
## [0.1.2] - 2018-02-09
86+
4987
### Fixed
88+
5089
- Fixed config publishing
5190

5291
### Changed
53-
- $expiration parameter of `sign()` helper now defaults to the value defined in the configuration file when not defined
92+
93+
- \$expiration parameter of `sign()` helper now defaults to the value defined in the configuration file when not defined
5494

5595
## [0.1.1] - 2018-02-09
96+
5697
### Added
98+
5799
- Added `sign()` helper
58100

59101
## [0.1.0 - 2018-02-09
102+
60103
- Initial release

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Create CloudFront signed URLs in Laravel 5.6+
2-
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
2+
3+
Easy to use Laravel 6+ wrapper around the official AWS PHP SDK which allows to sign URLs to access Private Content through CloudFront CDN
34

45
Inspired by [laravel-url-signer](https://github.com/spatie/laravel-url-signer)
56

@@ -63,13 +64,17 @@ return [
6364

6465
];
6566
```
67+
6668
## Usage
6769

6870
### Signing URLs
71+
6972
URL's can be signed with the `sign` method:
73+
7074
```php
7175
CloudFrontUrlSigner::sign('https://myapp.com/resource');
7276
```
77+
7378
By default the lifetime of an URL is one day. This value can be change in the config-file.
7479
If you want a custom life time, you can specify the number of days the URL should be valid:
7580

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

8186
For fine grained control, you may also pass a `DateTime` instance as the second parameter. The url
8287
will be valid up to that moment. This example uses Carbon for convenience:
88+
8389
```php
8490
// This URL will be valid up until 2 hours from the moment it was generated.
8591
CloudFrontUrlSigner::sign('https://myapp.com/resource', Carbon\Carbon::now()->addHours(2) );
@@ -91,7 +97,7 @@ Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recen
9197

9298
## Testing
9399

94-
``` bash
100+
```bash
95101
$ vendor/bin/phpunit
96102
```
97103

composer.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
{
2-
"name": "dreamonkey/laravel-cloudfront-url-signer",
3-
"description": "Laravel 5.6+ wrapper around CloudFront canned signed URLs",
4-
"keywords": [
5-
"dreamonkey",
6-
"laravel-cloudfront-url-signer",
7-
"private content",
8-
"cloudfront"
9-
],
10-
"homepage": "https://github.com/dreamonkey/laravel-cloudfront-url-signer",
11-
"license": "MIT",
12-
"authors": [
13-
{
14-
"name": "Paolo Caleffi",
15-
"email": "[email protected]",
16-
"homepage": "https://dreamonkey.com",
17-
"role": "Developer"
18-
}
19-
],
20-
"require": {
21-
"php" : "^7.1.3",
22-
"illuminate/support": ">=5.6.0",
23-
"aws/aws-sdk-php": "^3.52"
24-
},
25-
"require-dev": {
26-
"orchestra/testbench": "~3.4.4|~3.5.0|~3.6.0",
27-
"phpunit/phpunit" : "^6.3|^7.0"
28-
},
29-
"autoload": {
30-
"psr-4": {
31-
"Dreamonkey\\CloudFrontUrlSigner\\": "src"
32-
},
33-
"files": [
34-
"src/helpers.php"
35-
]
36-
},
37-
"autoload-dev": {
38-
"psr-4": {
39-
"Dreamonkey\\CloudFrontUrlSigner\\Tests\\": "tests"
40-
}
2+
"name": "dreamonkey/laravel-cloudfront-url-signer",
3+
"description": "Laravel 5.6+ wrapper around CloudFront canned signed URLs",
4+
"keywords": [
5+
"dreamonkey",
6+
"laravel-cloudfront-url-signer",
7+
"private content",
8+
"cloudfront"
9+
],
10+
"homepage": "https://github.com/dreamonkey/laravel-cloudfront-url-signer",
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Paolo Caleffi",
15+
"email": "[email protected]",
16+
"homepage": "https://dreamonkey.com",
17+
"role": "Developer"
18+
}
19+
],
20+
"require": {
21+
"php": "^7.1.3",
22+
"illuminate/support": "^6.0|^7.0",
23+
"aws/aws-sdk-php": "^3.52"
24+
},
25+
"require-dev": {
26+
"orchestra/testbench": "^5.0",
27+
"phpunit/phpunit": "^8.0|^9.0"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Dreamonkey\\CloudFrontUrlSigner\\": "src"
4132
},
42-
"extra": {
43-
"laravel": {
44-
"providers": [
45-
"Dreamonkey\\CloudFrontUrlSigner\\CloudFrontUrlSignerServiceProvider"
46-
],
47-
"aliases": {
48-
"CloudFrontUrlSigner": "Dreamonkey\\CloudFrontUrlSigner\\Facades\\CloudFrontUrlSigner"
49-
}
50-
}
33+
"files": [
34+
"src/helpers.php"
35+
]
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"Dreamonkey\\CloudFrontUrlSigner\\Tests\\": "tests"
40+
}
41+
},
42+
"extra": {
43+
"laravel": {
44+
"providers": [
45+
"Dreamonkey\\CloudFrontUrlSigner\\CloudFrontUrlSignerServiceProvider"
46+
],
47+
"aliases": {
48+
"CloudFrontUrlSigner": "Dreamonkey\\CloudFrontUrlSigner\\Facades\\CloudFrontUrlSigner"
49+
}
5150
}
51+
}
5252
}

0 commit comments

Comments
 (0)