Basic usage

require'vendor/autoload.php';useGuzzleHttp\Client;useDevster\GuzzleHttp\Subscriber\WsseAuth;// Create a Guzzle client$clientnewClient(['base_url'=>'http://example.com']);// and add it the plugin(newWsseAuth('username', 'pass****'))->attach($client);// Or$client->getEmitter()->attach(newWsseAuth('username', '********'));// Now the plugin will add the correct WSSE headers to your guzzle request$response=$client->get('/data')->send();