PHPackages                             devster/guzzle-wsse-plugin - 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. devster/guzzle-wsse-plugin

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

devster/guzzle-wsse-plugin
==========================

Guzzle plugin to manage WSSE authentication

2.1.0(11y ago)829.5k23MITPHPPHP &gt;=5.4

Since Jan 9Pushed 11y ago3 watchersCompare

[ Source](https://github.com/devster/guzzle-wsse-plugin)[ Packagist](https://packagist.org/packages/devster/guzzle-wsse-plugin)[ Docs](https://github.com/devster/guzzle-wsse-plugin)[ RSS](/packages/devster-guzzle-wsse-plugin/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (5)Used By (3)

Guzzle WSSE Plugin
==================

[](#guzzle-wsse-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/bb16edefc900e2c9da76ac9221a1c21bf0c2963b1cd4bbb1557f7b977e48a3ab/68747470733a2f2f62616467652e667572792e696f2f70682f6465767374657225324667757a7a6c652d777373652d706c7567696e2e737667)](https://packagist.org/packages/devster/guzzle-wsse-plugin)[![Build Status](https://camo.githubusercontent.com/944277f62188a953474328750bb98c7553a4647100896e3c6ebed4b22a75f42b/68747470733a2f2f7472617669732d63692e6f72672f646576737465722f67757a7a6c652d777373652d706c7567696e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/devster/guzzle-wsse-plugin)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e65f96c6f851a6c589cfbad75a0799a7c0ef47ffe710e869355ab865f4e39c97/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646576737465722f67757a7a6c652d777373652d706c7567696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/devster/guzzle-wsse-plugin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/71f59eb7fcf15f4b8a341b74c59387129baa89d020d08c2e638e882c2ba76c21/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646576737465722f67757a7a6c652d777373652d706c7567696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/devster/guzzle-wsse-plugin/?branch=master)

Guzzle Plugin to manage WSSE Authentication

More informations on WSSE authentication

- **Guzzle 3: install `1.*` version**
- **Guzzle 4: install `2.*` version**

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

[](#installation)

### Install via composer

[](#install-via-composer)

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the plugin as a dependency
php composer.phar require devster/guzzle-wsse-plugin:~2.0
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Basic usage
-----------

[](#basic-usage)

```
require 'vendor/autoload.php';

use GuzzleHttp\Client;
use Devster\GuzzleHttp\Subscriber\WsseAuth;

// Create a Guzzle client
$client new Client(['base_url' => 'http://example.com']);
// and add it the plugin
(new WsseAuth('username', 'pass****'))->attach($client);
// Or
$client->getEmitter()->attach(new WsseAuth('username', '********'));

// Now the plugin will add the correct WSSE headers to your guzzle request
$response = $client->get('/data')->send();
```

Customization
-------------

[](#customization)

You can customize:

- The nonce generation
- The digest generation
- And the date format

```
use GuzzleHttp\Client;
use GuzzleHttp\Message\RequestInterface;
use Devster\GuzzleHttp\Subscriber\WsseAuth;

$client = new Client;

$plugin = new WsseAuth('username', 'pass****');
$plugin
    ->attach($client)
    ->setNonce(function (RequestInterface $request) {
        return uniqid('my_nonce', true);
    })
    ->setDigest(function ($nonce, $createdAt, $password) {
        return $nonce.$createdAt.$password;
    })
    ->setDateFormat('Y-m-d') // PHP format. Default: c (ISO 8601)
    // Process a behavior (like hashing) on the password before it pass to the digest generator
    ->setPasswordProcessor(function ($password) {
        return sha1($password);
    })
;
```

Tests
-----

[](#tests)

```
composer install && vendor/bin/phpunit

```

License
-------

[](#license)

This plugin is licensed under the MIT License

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Total

4

Last Release

4235d ago

Major Versions

1.0.0 → 2.0.02014-10-09

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8620f3809131894195e57dcaf70f3468f009b39dd4ebf220a964f580c38afc80?d=identicon)[devster](/maintainers/devster)

---

Top Contributors

[![devster](https://avatars.githubusercontent.com/u/1135083?v=4)](https://github.com/devster "devster (20 commits)")[![valeriangalliat](https://avatars.githubusercontent.com/u/3929133?v=4)](https://github.com/valeriangalliat "valeriangalliat (1 commits)")

---

Tags

pluginapirestGuzzleAuthenticationwsse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devster-guzzle-wsse-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/devster-guzzle-wsse-plugin/health.svg)](https://phpackages.com/packages/devster-guzzle-wsse-plugin)
```

###  Alternatives

[jeremykendall/query-auth

Signature generation and validation for REST API query authentication

142120.8k1](/packages/jeremykendall-query-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
