Skip to content

Commit 9b3cd48

Browse files
Dropped PHP 7.1
1 parent e26ee41 commit 9b3cd48

File tree

7 files changed

+15
-34
lines changed

7 files changed

+15
-34
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
14+
php: ['7.2', '7.3', '7.4', '8.0']
1515

1616
steps:
1717
- name: Checkout Code
@@ -27,22 +27,6 @@ jobs:
2727
- name: Setup Problem Matchers
2828
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
2929

30-
- name: Remove Guzzle 6
31-
uses: nick-invision/retry@v1
32-
with:
33-
timeout_minutes: 5
34-
max_attempts: 5
35-
command: composer remove php-http/guzzle6-adapter --dev --no-update --no-interaction
36-
if: matrix.php >= 8
37-
38-
- name: Require Guzzle 7
39-
uses: nick-invision/retry@v1
40-
with:
41-
timeout_minutes: 5
42-
max_attempts: 5
43-
command: composer require php-http/guzzle7-adapter --dev --no-update --no-interaction
44-
if: matrix.php >= 8
45-
4630
- name: Install Dependencies
4731
uses: nick-invision/retry@v1
4832
with:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ CHANGE LOG
22
==========
33

44

5+
## V4.0 (UPCOMING)
6+
7+
* Dropped support for PHP 7.1
8+
9+
510
## V3.3 (27/11/2020)
611

712
* Added PHP 8.0 support

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,20 @@ Check out the [change log](CHANGELOG.md), [releases](https://github.com/Bitbucke
2323

2424
## Installation
2525

26-
This version supports [PHP](https://php.net) 7.1-8.0. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
26+
This version supports [PHP](https://php.net) 7.2-8.0. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
2727

2828
### Standard Installation
2929

30-
#### PHP 7.1+:
31-
32-
```bash
33-
$ composer require bitbucket/client:^3.3 php-http/guzzle6-adapter:^2.0.1 http-interop/http-factory-guzzle:^1.0
34-
```
35-
36-
#### PHP 7.2+:
37-
3830
```bash
39-
$ composer require bitbucket/client:^3.3 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0
31+
$ composer require bitbucket/client:^4.0 guzzlehttp/guzzle:^7.2 http-interop/http-factory-guzzle:^1.0
4032
```
4133

4234
### Framework Integration
4335

4436
#### Laravel 6+:
4537

4638
```bash
47-
$ composer require graham-campbell/bitbucket:^7.3 guzzlehttp/guzzle:^7.0.1 http-interop/http-factory-guzzle:^1.0
39+
$ composer require graham-campbell/bitbucket:^8.0 guzzlehttp/guzzle:^7.2 http-interop/http-factory-guzzle:^1.0
4840
```
4941

5042
We are decoupled from any HTTP messaging client by using [PSR-7](https://www.php-fig.org/psr/psr-7/), [PSR-17](https://www.php-fig.org/psr/psr-17/), [PSR-18](https://www.php-fig.org/psr/psr-18/), and [HTTPlug](https://httplug.io/). You can visit [HTTPlug for library users](https://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages. The framework integration [`graham-campbell/bitbucket`](https://github.com/GrahamCampbell/Laravel-Bitbucket) is by [Graham Campbell](https://github.com/GrahamCampbell).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1.3 || ^8.0",
13+
"php": "^7.2.5 || ^8.0",
1414
"ext-json": "*",
1515
"php-http/cache-plugin": "^1.7.1",
1616
"php-http/client-common": "^2.3",
@@ -25,8 +25,8 @@
2525
},
2626
"require-dev": {
2727
"bamarni/composer-bin-plugin": "^1.4.1",
28+
"guzzlehttp/guzzle": "^7.2",
2829
"http-interop/http-factory-guzzle": "^1.0",
29-
"php-http/guzzle6-adapter": "^2.0.1",
3030
"php-http/mock-client": "^1.4.1"
3131
},
3232
"autoload": {

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Client
7474
*
7575
* @var string
7676
*/
77-
private const USER_AGENT = 'bitbucket-php-api-client/3.3';
77+
private const USER_AGENT = 'bitbucket-php-api-client/4.0';
7878

7979
/**
8080
* The HTTP client builder.

vendor-bin/phpunit/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
3-
"php": "^7.1.3 || ^8.0",
4-
"phpunit/phpunit": "^7.5.20 || ^8.5.11 || ^9.4.3"
3+
"php": "^7.2.5 || ^8.0",
4+
"phpunit/phpunit": "^8.5.11 || ^9.4.3"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"php": "^7.1.3 || ^8.0",
3+
"php": "^7.2.5 || ^8.0",
44
"psalm/phar": "~4.2.1"
55
},
66
"config": {

0 commit comments

Comments
 (0)