Skip to content

Commit 51ab1d7

Browse files
authored
Merge pull request #13 from php-api-clients/drop-support-for-php-lower-than-7.0
Drop support for PHP versions lower than 7.0
2 parents 1da20a4 + e5a75ed commit 51ab1d7

29 files changed

+504
-305
lines changed

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ cache:
88

99
## PHP versions we test against
1010
php:
11-
- 5.5
12-
- 5.6
1311
- 7.0
1412
- 7.1
1513
- nightly
@@ -18,10 +16,6 @@ php:
1816
## Build matrix for lowest and highest possible targets
1917
matrix:
2018
include:
21-
- php: 5.5
22-
env: dependencies=lowest
23-
- php: 5.6
24-
env: dependencies=lowest
2519
- php: 7.0
2620
env: dependencies=lowest
2721
- php: 7.1
@@ -30,10 +24,6 @@ matrix:
3024
env: dependencies=lowest
3125
- php: hhvm
3226
env: dependencies=lowest
33-
- php: 5.5
34-
env: dependencies=highest
35-
- php: 5.6
36-
env: dependencies=highest
3727
- php: 7.0
3828
env: dependencies=highest
3929
- php: 7.1

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Client-side PSR-7 Oauth1 request signer
1+
# Client-side PSR-7 Oauth1 request signer for PHP `^7.0`
22

33
[![Build Status](https://travis-ci.org/php-api-clients/psr7-oauth1.svg?branch=master)](https://travis-ci.org/php-api-clients/psr7-oauth1)
44
[![Latest Stable Version](https://poser.pugx.org/api-clients/psr7-oauth1/v/stable.png)](https://packagist.org/packages/api-clients/psr7-oauth1)
@@ -15,6 +15,18 @@ To install via [Composer](http://getcomposer.org/), use the command below, it wi
1515
composer require api-clients/psr7-oauth1
1616
```
1717

18+
In case you need to support `5.5+` as well in your package, we suggest you use the following command:
19+
20+
```bash
21+
composer require api-clients/psr7-oauth1:^1.0
22+
```
23+
24+
However since `1.0` and `2.0` of this package are 100% compatible, we recommend you use the following command to support both:
25+
26+
```bash
27+
composer require "api-clients/psr7-oauth1:^2.0 || ^1.0"
28+
```
29+
1830
# Example
1931

2032
```php

appveyor.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ clone_folder: c:\projects\php-project-workspace
77
## Build matrix for lowest and highest possible targets
88
environment:
99
matrix:
10-
- dependencies: lowest
11-
php_ver_target: 5.6
1210
- dependencies: lowest
1311
php_ver_target: 7.0
14-
- dependencies: current
15-
php_ver_target: 5.6
1612
- dependencies: highest
1713
php_ver_target: 7.0
18-
- dependencies: highest
19-
php_ver_target: 5.6
2014
- dependencies: highest
2115
php_ver_target: 7.0
2216

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.0 || ^5.5",
15+
"php": "^7.0",
1616
"psr/http-message": "^1.0"
1717
},
1818
"require-dev": {
1919
"guzzlehttp/psr7": "^1.3",
2020
"humbug/humbug": "1.0.0-alpha2",
21-
"phpunit/phpunit": "^5.5 || ^4.8",
21+
"phpunit/phpunit": "^5.6",
2222
"squizlabs/php_codesniffer": "^2.6"
2323
},
2424
"autoload": {
@@ -34,7 +34,7 @@
3434
"config": {
3535
"sort-packages": true,
3636
"platform": {
37-
"php": "5.5.9"
37+
"php": "7.0"
3838
}
3939
},
4040
"scripts": {

0 commit comments

Comments
 (0)