Skip to content

Commit

Permalink
Merge pull request #13 from php-api-clients/drop-support-for-php-lowe…
Browse files Browse the repository at this point in the history
…r-than-7.0

Drop support for PHP versions lower than 7.0
  • Loading branch information
WyriHaximus authored Nov 26, 2016
2 parents 1da20a4 + e5a75ed commit 51ab1d7
Show file tree
Hide file tree
Showing 29 changed files with 504 additions and 305 deletions.
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ cache:

## PHP versions we test against
php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly
Expand All @@ -18,10 +16,6 @@ php:
## Build matrix for lowest and highest possible targets
matrix:
include:
- php: 5.5
env: dependencies=lowest
- php: 5.6
env: dependencies=lowest
- php: 7.0
env: dependencies=lowest
- php: 7.1
Expand All @@ -30,10 +24,6 @@ matrix:
env: dependencies=lowest
- php: hhvm
env: dependencies=lowest
- php: 5.5
env: dependencies=highest
- php: 5.6
env: dependencies=highest
- php: 7.0
env: dependencies=highest
- php: 7.1
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Client-side PSR-7 Oauth1 request signer
# Client-side PSR-7 Oauth1 request signer for PHP `^7.0`

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

In case you need to support `5.5+` as well in your package, we suggest you use the following command:

```bash
composer require api-clients/psr7-oauth1:^1.0
```

However since `1.0` and `2.0` of this package are 100% compatible, we recommend you use the following command to support both:

```bash
composer require "api-clients/psr7-oauth1:^2.0 || ^1.0"
```

# Example

```php
Expand Down
6 changes: 0 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ clone_folder: c:\projects\php-project-workspace
## Build matrix for lowest and highest possible targets
environment:
matrix:
- dependencies: lowest
php_ver_target: 5.6
- dependencies: lowest
php_ver_target: 7.0
- dependencies: current
php_ver_target: 5.6
- dependencies: highest
php_ver_target: 7.0
- dependencies: highest
php_ver_target: 5.6
- dependencies: highest
php_ver_target: 7.0

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
}
],
"require": {
"php": "^7.0 || ^5.5",
"php": "^7.0",
"psr/http-message": "^1.0"
},
"require-dev": {
"guzzlehttp/psr7": "^1.3",
"humbug/humbug": "1.0.0-alpha2",
"phpunit/phpunit": "^5.5 || ^4.8",
"phpunit/phpunit": "^5.6",
"squizlabs/php_codesniffer": "^2.6"
},
"autoload": {
Expand All @@ -34,7 +34,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "5.5.9"
"php": "7.0"
}
},
"scripts": {
Expand Down
Loading

0 comments on commit 51ab1d7

Please sign in to comment.