1
- # Client-side PSR-7 Oauth1 request signer for PHP ` ^7.0 `
1
+ # Client-side PSR-7 Oauth1 request signer for PHP ` ^8 || ^7.4 `
2
2
3
- [ ![ Build Status ] ( https://travis-ci.org /php-api-clients/psr7-oauth1. svg?branch=master )] ( https://travis-ci.org /php-api-clients/psr7-oauth1 )
3
+ [ ![ Continuous Integration ] ( https://github.com /php-api-clients/psr7-oauth1/actions/workflows/ci.yml/badge. svg?event=push )] ( https://github.com /php-api-clients/psr7-oauth1/actions/workflows/ci.yml )
4
4
[ ![ Latest Stable Version] ( https://poser.pugx.org/api-clients/psr7-oauth1/v/stable.png )] ( https://packagist.org/packages/api-clients/psr7-oauth1 )
5
5
[ ![ Total Downloads] ( https://poser.pugx.org/api-clients/psr7-oauth1/downloads.png )] ( https://packagist.org/packages/api-clients/psr7-oauth1/stats )
6
6
[ ![ Code Coverage] ( https://scrutinizer-ci.com/g/php-api-clients/psr7-oauth1/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/php-api-clients/psr7-oauth1/?branch=master )
7
7
[ ![ License] ( https://poser.pugx.org/api-clients/psr7-oauth1/license.png )] ( https://packagist.org/packages/api-clients/psr7-oauth1 )
8
- [ ![ PHP 7 ready] ( http://php7ready.timesplinter.ch/php-api-clients/psr7-oauth1/badge.svg )] ( https://appveyor-ci.org/php-api-clients/psr7-oauth1 )
9
8
10
9
# Installation
11
10
12
11
To install via [ Composer] ( http://getcomposer.org/ ) , use the command below, it will automatically detect the latest version and bind it with ` ^ ` .
13
12
14
13
``` bash
15
- composer require api-clients/psr7-oauth1
14
+ composer require api-clients/psr7-oauth1
16
15
```
17
16
18
17
In case you need to support ` 5.5+ ` as well in your package, we suggest you use the following command:
@@ -21,10 +20,10 @@ In case you need to support `5.5+` as well in your package, we suggest you use t
21
20
composer require api-clients/psr7-oauth1:^1.0
22
21
```
23
22
24
- However since ` 1.0 ` and ` 2 .0` of this package are 100% compatible, we recommend you use the following command to support both:
23
+ However, since ` 1.0 ` , ` 2.0 ` , and ` 3 .0` of this package are 100% compatible, we recommend you use the following command to support both:
25
24
26
25
``` bash
27
- composer require " api-clients/psr7-oauth1:^2.0 || ^1.0"
26
+ composer require " api-clients/psr7-oauth1:^2.0 || ^1.0"
28
27
```
29
28
30
29
# Example
@@ -34,7 +33,6 @@ composer require "api-clients/psr7-oauth1:^2.0 || ^1.0"
34
33
35
34
use ApiClients\Tools\Psr7\Oauth1\Definition;
36
35
use ApiClients\Tools\Psr7\Oauth1\RequestSigning\RequestSigner;
37
- use ApiClients\Tools\Psr7\Oauth1\Signature\HmacSha1Signature;
38
36
39
37
// Pass it a PSR-7 request and it returns a signed PSR7 request you can use in any PSR7 capable HTTP client.
40
38
// By default a HMAC-SHA1 signature will be used, this can be changed, see examples below how to do that.
@@ -154,7 +152,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
154
152
155
153
The MIT License (MIT)
156
154
157
- Copyright (c) 2016 Cees-Jan Kiewiet & Beau Simensen
155
+ Copyright (c) 2021 Cees-Jan Kiewiet & Beau Simensen
158
156
159
157
Permission is hereby granted, free of charge, to any person obtaining a copy
160
158
of this software and associated documentation files (the "Software"), to deal
0 commit comments