|
1 | 1 | # Guzzle Commands
|
2 | 2 |
|
3 | 3 | [](https://packagist.org/packages/guzzlehttp/command)
|
4 |
| -[](https://travis-ci.org/guzzle/command) |
5 |
| -[](https://scrutinizer-ci.com/g/guzzle/command/?branch=master) |
6 |
| -[](https://scrutinizer-ci.com/g/guzzle/command/?branch=master) |
| 4 | +[](https://travis-ci.org/guzzle/command) |
| 5 | +[](https://scrutinizer-ci.com/g/guzzle/command/?branch=master) |
| 6 | +[](https://scrutinizer-ci.com/g/guzzle/command/?branch=master) |
7 | 7 | [](https://insight.sensiolabs.com/projects/7a93338e-50cd-42f7-9299-17c44d92148f)
|
8 | 8 | [](https://packagist.org/packages/guzzlehttp/command)
|
9 | 9 | [](https://packagist.org/packages/guzzlehttp/command)
|
10 | 10 | [](https://packagist.org/packages/guzzlehttp/command)
|
11 | 11 |
|
12 |
| -This library uses Guzzle (``guzzlehttp/guzzle``, version 6.x) and provides the |
| 12 | +This library uses Guzzle (``guzzlehttp/guzzle``, version 7.x) and provides the |
13 | 13 | foundations to create fully-featured web service clients by abstracting Guzzle
|
14 | 14 | HTTP **requests** and **responses** into higher-level **commands** and
|
15 | 15 | **results**. A **middleware** system, analogous to — but separate from — the one
|
16 | 16 | in the HTTP layer may be used to customize client behavior when preparing
|
17 | 17 | commands into requests and processing responses into results.
|
18 | 18 |
|
19 | 19 | ### Commands
|
20 |
| - |
| 20 | + |
21 | 21 | Key-value pair objects representing an operation of a web service. Commands have a name and a set of parameters.
|
22 | 22 |
|
23 | 23 | ### Results
|
@@ -65,8 +65,7 @@ $command = $client->getCommand($commandName, $arguments);
|
65 | 65 |
|
66 | 66 | ```
|
67 | 67 |
|
68 |
| -After creating a command, you may execute the command using the ``execute()`` |
69 |
| -method of the client. |
| 68 | +After creating a command, you may execute the command using the ``execute()`` method of the client. |
70 | 69 |
|
71 | 70 | ```php
|
72 | 71 | $result = $client->execute($command);
|
@@ -107,7 +106,7 @@ $promise = $client->fooAsync(['baz' => 'bar']);
|
107 | 106 | ```php
|
108 | 107 | $result = $promise->wait();
|
109 | 108 |
|
110 |
| -echo $result['fizz']; //> 'buzz' |
| 109 | +echo $result['fizz']; //> 'buzz' |
111 | 110 | ```
|
112 | 111 |
|
113 | 112 | ## Concurrent Requests
|
|
0 commit comments