1- Guzzle Bundle WSSE Plugin
2- ==================
1+ # Guzzle Bundle WSSE Plugin
32
4- [ ![ Build Status] ( https://travis-ci.org/gregurco/GuzzleBundleWssePlugin.svg?branch=master )] ( https://travis-ci.org/gregurco/GuzzleBundleWssePlugin ) [ ![ Coverage Status] ( https://coveralls.io/repos/gregurco/GuzzleBundleWssePlugin/badge.svg?branch=master )] ( https://coveralls.io/r/gregurco/GuzzleBundleWssePlugin )
3+ [ ![ Build Status] ( https://travis-ci.org/gregurco/GuzzleBundleWssePlugin.svg?branch=master )] ( https://travis-ci.org/gregurco/GuzzleBundleWssePlugin )
4+ [ ![ Coverage Status] ( https://coveralls.io/repos/gregurco/GuzzleBundleWssePlugin/badge.svg?branch=master )] ( https://coveralls.io/r/gregurco/GuzzleBundleWssePlugin )
5+ [ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/537660c3-913a-4ce2-876a-4abb73f642f2/mini.png )] ( https://insight.sensiolabs.com/projects/537660c3-913a-4ce2-876a-4abb73f642f2 )
56
67This plugin integrates [ WSSE] [ 1 ] functionality into Guzzle Bundle, a bundle for building RESTful web service clients.
78
89
9- Requirements
10- ------------
10+ ## Requirements
1111 - PHP 7.0 or above
1212 - [ Guzzle Bundle] [ 2 ]
1313
1414
15- Installation
16- ------------
15+ ### Installation
1716Using [ composer] [ 3 ] :
1817
18+ ##### composer.json
1919``` json
2020{
2121 "require" : {
@@ -24,18 +24,25 @@ Using [composer][3]:
2424}
2525```
2626
27+ ##### command line
28+ ``` bash
29+ $ composer require gregurco/guzzle-bundle-wsse-plugin
30+ ```
2731
28- Usage
29- -----
30- Load plugin in AppKernel.php:
32+ ## Usage
33+ ### Enable bundle
3134``` php
35+ # app/AppKernel.php
36+
3237new EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle([
3338 new Gregurco\Bundle\GuzzleBundleWssePlugin\GuzzleBundleWssePlugin(),
3439])
3540```
3641
37- Configuration in config.yml:
42+ ### Basic configuration
3843``` yaml
44+ # app/config/config.yml
45+
3946eight_points_guzzle :
4047 clients :
4148 api_payment :
@@ -51,7 +58,7 @@ eight_points_guzzle:
5158 created_at : " -10 seconds" # optional
5259` ` `
5360
54- Or use with guzzle directly:
61+ ## Usage with guzzle
5562` ` ` php
5663<?php
5764# Optional: Set third parameter by a expression (if not, current time will be used automatically)
@@ -69,10 +76,9 @@ $client = new \GuzzleHttp\Client(['handler' => $stack]);
6976$response = $client->get('http://www.8points.de');
7077```
7178
72- License
73- -------
79+ ## License
7480This middleware is licensed under the MIT License - see the LICENSE file for details
7581
7682[ 1 ] : http://www.xml.com/pub/a/2003/12/17/dive.html
77- [ 2 ] : https://github.com/8p/GuzzleBundle
83+ [ 2 ] : https://github.com/8p/EightPointsGuzzleBundle
7884[ 3 ] : https://getcomposer.org/
0 commit comments