Skip to content

Commit

Permalink
Merge pull request #8 from 8p/feature/readme
Browse files Browse the repository at this point in the history
added createdAt setter info, changed composer require version
  • Loading branch information
Florian Preusner committed May 21, 2016
2 parents 85c06ee + 9e41bb2 commit 9db68bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Using [composer][3]:
``` json
{
"require": {
"eightpoints/guzzle-wsse-middleware": "~3.0"
"eightpoints/guzzle-wsse-middleware": "^4.1.1"
}
}
```
Expand All @@ -27,7 +27,12 @@ Usage
``` php
<?php

$wsse = new \EightPoints\Guzzle\WsseAuthMiddleware($username, $password);
$wsse = new \EightPoints\Guzzle\WsseAuthMiddleware($username, $password);

# optional: set createdAt (if not, current time will be used automatically)
# useful if there is a small difference of time between client and server
$wsse->setCreatedAt(new \DateTime('-10 seconds));

$stack = \GuzzleHttp\HandlerStack::create();

// Add the wsse middleware to the handler stack.
Expand Down

0 comments on commit 9db68bc

Please sign in to comment.