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

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

devster/buzz-wsse-plugin
========================

Buzz plugin to manage WSSE authentication

1.0.0(12y ago)319.1kMITPHPPHP &gt;=5.3.3

Since Jan 12Pushed 12y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

buzz-wsse-plugin
================

[](#buzz-wsse-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/2337197d832694c44138b0245ecf13d2ef90e640d24a93157bf2d7486c8fcda5/68747470733a2f2f706f7365722e707567782e6f72672f646576737465722f62757a7a2d777373652d706c7567696e2f762f737461626c652e706e67)](https://packagist.org/packages/devster/buzz-wsse-plugin) [![Build Status](https://camo.githubusercontent.com/c0dab54413cfde6b7c7121cd065fd92d4c03801cff4469dca62ecce5e0d20849/68747470733a2f2f7472617669732d63692e6f72672f646576737465722f62757a7a2d777373652d706c7567696e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/devster/buzz-wsse-plugin)

Buzz plugin to manage WSSE authentication

[Buzz](https://github.com/kriswallsmith/Buzz) is a lightweight PHP 5.3 library for issuing HTTP requests.

More informations on WSSE authentication

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/buzz-wsse-plugin:~1.0
```

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

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

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

[](#basic-usage)

```
require 'vendor/autoload.php'

use Buzz\Browser;
use Devster\Buzz\Listener\WsseAuthListener;

// Create a Buzz client
$browser = new Browser();
// and add the Wsse listener
$browser->addListener(new WsseAuthListener('username', '*******'));

// finally use Buzz as usual
$response = $browser->get('http://www.google.com');

echo $browser->getLastRequest()."\n";
echo $response;
```

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

[](#customization)

All the plugin is configurable: the way to generate the nonce, the timestamp and also the password digest.

```
use Buzz\Browser;
use Buzz\Message\RequestInterface;
use Devster\Buzz\Listener\WsseAuthListener;

$browser = new Buzz\Browser();
$wsse = new WsseAuthListener('bob', '*********');
$wsse
    // Customize the nonce generator
    // A callable that must return a string
    ->setNonceCallback(function(RequestInterface $request) {
        return uniqid('myapp_', true);
    })
    // Customize the timestamp generator
    // A callable that must return a string
    ->setTimestampCallback(function(RequestInterface $request) {
        $date = new \DateTime("now");
        return $date->format('c');
    })
    // Customize the digest generator
    // A callable that must return a string
    ->setDigestCallback(function($nonce, $timestamp, $password, RequestInterface $request) {
        return hash('sha512', $nonce.$timestamp.$password, true);
    })
;

// add the listener to the browser
$browser->addListener($wsse);
```

Tests
-----

[](#tests)

Unit tests are made with atoum.

```
composer install --dev
./vendor/bin/atoum
```

License
-------

[](#license)

This plugin is licensed under the MIT License

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4507d ago

### 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 (5 commits)")

---

Tags

pluginapirestAuthenticationbuzzwsse

### Embed Badge

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

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

###  Alternatives

[zoonman/linkedin-api-php-client

LinkedIn API PHP SDK with OAuth 2.0 &amp; CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.

127704.0k](/packages/zoonman-linkedin-api-php-client)[jeremykendall/query-auth

Signature generation and validation for REST API query authentication

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

The Aphiria framework

1427.7k2](/packages/aphiria-aphiria)

PHPackages © 2026

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