PHPackages                             warxcell/guzzle-oauth2-middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. warxcell/guzzle-oauth2-middleware

ActiveLibrary[HTTP &amp; Networking](/categories/http)

warxcell/guzzle-oauth2-middleware
=================================

Guzzle middleware with OAuth2 integration

2.0.0(5y ago)017Apache-2.0PHPPHP &gt;=5.6

Since Aug 18Pushed 5y agoCompare

[ Source](https://github.com/Warxcell/guzzle-oauth2-middleware)[ Packagist](https://packagist.org/packages/warxcell/guzzle-oauth2-middleware)[ Docs](https://github.com/softonic/guzzle-oauth2-middleware)[ RSS](/packages/warxcell-guzzle-oauth2-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (11)Used By (0)

Guzzle OAuth2 Middleware
========================

[](#guzzle-oauth2-middleware)

[![Latest Version](https://camo.githubusercontent.com/85b526b51c29902e5b6f8d3f056d9878a2b059fa254c9c2ad6e9b28088c6678a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/guzzle-oauth2-middleware/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6bcffbfaf864eab61283d2891b8572733c79349834c613077a696c9513be7182/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/softonic/guzzle-oauth2-middleware)[![Coverage Status](https://camo.githubusercontent.com/67dc714de5b985c84b29055d54ed4159ea207f9ccb9ba0a4027be6f988f4b872/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/guzzle-oauth2-middleware/code-structure)[![Quality Score](https://camo.githubusercontent.com/98fe91616345ddfa6dc7968744dc12aba75b995012ca4da0f7ee196321467ab4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/guzzle-oauth2-middleware)[![Total Downloads](https://camo.githubusercontent.com/178468ea2d36b8398d29ca2a4bdabff6c70cf78d783dabbeefff63c654ffba21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/guzzle-oauth2-middleware)[![Average time to resolve an issue](https://camo.githubusercontent.com/d4ceb2b6bd0c57463a2a7909f5ec50e8363159225774aec4b67d085f85f58923/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/guzzle-oauth2-middleware "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/d2ffe46cefdc9e4188b2f4b62bfc0581926d09583b7443d2891bb0e60dbd7e29/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f67757a7a6c652d6f61757468322d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/guzzle-oauth2-middleware "Percentage of issues still open")

This package provides middleware for [guzzle](https://github.com/guzzle/guzzle/) for handling OAuth2 token negotiation and renewal on expiry transparently. It accecpts PHP League's [OAuth 2.0 Clients](https://github.com/thephpleague/oauth2-client).

Installation
------------

[](#installation)

To install, use composer:

```
composer require softonic/guzzle-oauth2-middleware

```

Usage
-----

[](#usage)

```
