ngabor84 / guzzle-wsse-middleware
WSSE authentication middleware for Guzzle HTTP Client
0.3.1
2019-12-11 16:32 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ^6.4
- psr/http-message: ^1.0
Requires (Dev)
- nunomaduro/phpinsights: ^1.11
- phpunit/phpunit: ^8.4
This package is auto-updated.
Last update: 2024-11-19 22:45:22 UTC
README
Guzzle WSSE Middleware
This authentication middleware add WSSE sign functionality to Guzzle Http Client.
Installation
composer require ngabor84/guzzle-wsse-middleware
Usage
<?php $wsseMiddleware = new \Guzzle\Http\Middleware\WsseMiddleware($username, $password); $stack = \GuzzleHttp\HandlerStack::create(); $stack->push($wsseMiddleware); $client = new \GuzzleHttp\Client(['handler' => $stack]); // Important: set the auth option to wsse to activate the middleware $response = $client->get('http://www.8points.de', ['auth' => 'wsse']);