Skip to content

Commit cda8b94

Browse files
authored
Remove php-http/message and prepare for stable release (#118)
* Remove php-http/message and prepare for stable release * Update Readme.md * Minor
1 parent c021c8f commit cda8b94

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

Readme.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ Here is a list of features that might convince you to choose this LinkedIn clien
2828

2929
## Installation
3030

31-
Install the library with Composer.
32-
33-
```bash
34-
composer require happyr/linkedin-api-client
35-
```
36-
3731
This library does not have a dependency on Guzzle or any other library that sends HTTP requests. We use the awesome
3832
HTTPlug to achieve the decoupling. We want you to choose what library to use for sending HTTP requests. Consult this list
3933
ofthis list virtual packages that support [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation)
@@ -44,9 +38,22 @@ find clients to use. For more information about virtual packages please refer to
4438
composer require php-http/guzzle6-adapter
4539
```
4640

41+
You do also need to install a PSR-7 implementation and a factory to create PSR-7 messages (PSR-17 whenever that is
42+
released). You could use Guzzles PSR-7 implementation and factories from php-http:
43+
44+
```bash
45+
composer require guzzlehttp/psr7 php-http/message
46+
```
47+
48+
Now you may install the library by running the following:
49+
50+
```bash
51+
composer require happyr/linkedin-api-client
52+
```
53+
4754
If you are updating form a previous version make sure to read [the upgrade documentation](Upgrade.md).
4855

49-
### Finding the HTTP client.
56+
### Finding the HTTP client (optional)
5057

5158
The LinkedIn client need to know what library you are using to send HTTP messages. You could provide an instance of
5259
HttpClient and MessageFactory or you could fallback on auto discovery. Below is an example on where you provide a Guzzle6
@@ -59,7 +66,6 @@ $linkedIn->setHttpMessageFactory(new Http\Message\MessageFactory\GuzzleMessageFa
5966

6067
```
6168

62-
6369
## Usage
6470

6571
In order to use this API client (or any other LinkedIn clients) you have to [register your application][register-app]

Upgrade.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This document explains how you upgrade from one version to another.
44

5+
## Upgrade from 0.7.2 to 1.0
6+
7+
### Changes
8+
9+
* We do not longer require `php-http/message`. You have to make sure to put that in your own composer.json.
10+
511
## Upgrade from 0.7.1 to 0.7.2
612

713
### Changes

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"php": "^5.5 || ^7.0",
1616
"php-http/client-implementation": "^1.0",
1717
"php-http/httplug": "^1.0",
18-
"php-http/message": "^1.0",
1918
"php-http/message-factory": "^1.0",
2019
"php-http/discovery": "^1.0"
2120
},
@@ -35,7 +34,7 @@
3534
},
3635
"extra": {
3736
"branch-alias": {
38-
"dev-master": "0.8.x-dev"
37+
"dev-master": "1.1.x-dev"
3938
}
4039
}
4140
}

0 commit comments

Comments
 (0)