PHPackages                             cmpayments/guzzle-psp-authentication-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. cmpayments/guzzle-psp-authentication-middleware

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

cmpayments/guzzle-psp-authentication-middleware
===============================================

Guzzle middleware which adds authentication-header to Guzzle-requests.

1.0.1(5y ago)58.3k↓50%1MITPHPPHP &gt;=5.5.0CI failing

Since Jun 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/cmpayments/guzzle-psp-authentication-middleware)[ Packagist](https://packagist.org/packages/cmpayments/guzzle-psp-authentication-middleware)[ Docs](https://www.cmpayments.com)[ RSS](/packages/cmpayments-guzzle-psp-authentication-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (1)

Guzzle Authentication Middleware
================================

[](#guzzle-authentication-middleware)

[![Build Status](https://camo.githubusercontent.com/2d24e08463a20c0ea65d33a648a41be4f688585a36784d0bbf32a3cc9f49ad68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636d7061796d656e74732f67757a7a6c652d7073702d61757468656e7469636174696f6e2d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cmpayments/guzzle-psp-authentication-middleware)[![Scrutinizer](https://camo.githubusercontent.com/fb84ddb8300f8350b21b0004087708663d4f0ee4ee935c0a1a0e1b4b59a6ae16/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636d7061796d656e74732f67757a7a6c652d7073702d61757468656e7469636174696f6e2d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cmpayments/guzzle-psp-authentication-middleware/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cmpayments/guzzle-psp-authentication-middleware/blob/master/LICENSE)[![Total Downloads](https://camo.githubusercontent.com/9db822bbe2a101f977b758699d2511294b66da9d9d54b3078979753460c17d85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636d7061796d656e74732f67757a7a6c652d7073702d61757468656e7469636174696f6e2d6d6964646c65776172652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cmpayments/guzzle-psp-authentication-middleware)[![Code Coverage](https://camo.githubusercontent.com/e740e6145bf37317e502ddf0a491a7e0622ef43c7c003b4e95157cd97d5c97e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636d7061796d656e74732f67757a7a6c652d7073702d61757468656e7469636174696f6e2d6d6964646c65776172652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cmpayments/guzzle-psp-authentication-middleware/?branch=master)

This middleware implements the authentication part of a guzzle request to the CM Payments PSP-api.

This library is compatible with PHP 5.5+ and PHP 7.0, but requires the Guzzle, PHP HTTP client version ^6.0 or ^7.0

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

[](#installation)

To install cmpayments/guzzle-psp-authentication-middleware just require it with composer:

```
# composer require cmpayments/guzzle-psp-authentication-middleware

```

Usage examples
--------------

[](#usage-examples)

Below an example in order to request an iDEAL-transaction via a POST-request.

```
