You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `LoggingClient` wraps a `ClientInterface` and outputs the HTTP messages in a readable way through a `LoggerInterface` (do NOT use in production!).
174
+
175
+
```php
176
+
$loggingClient = new LoggingClient($httpClient, $logger);
177
+
178
+
$loggingClient->sendRequest($request); // -> log to output given via logger
179
+
```
180
+
181
+
182
+
### Auto generated API documentation
183
+
184
+
The API documentation can be auto generated with [phpDocumentor](https://www.phpdoc.org/).
185
+
There is an [online version available](https://chillerlan.github.io/php-httpinterface/) via the [gh-pages branch](https://github.com/chillerlan/php-httpinterface/tree/gh-pages) that is [automatically deployed](https://github.com/chillerlan/php-httpinterface/deployments) on each push to main.
186
+
187
+
Locally created docs will appear in the directory `.build/phpdocs/`. If you'd like to create local docs, please follow these steps:
188
+
189
+
-[download phpDocumentor](https://github.com/phpDocumentor/phpDocumentor/releases) v3+ as .phar archive
190
+
- run it in the repository root directory:
191
+
- on Windows `c:\path\to\php.exe c:\path\to\phpDocumentor.phar --config=phpdoc.xml`
192
+
- on Linux just `php /path/to/phpDocumentor.phar --config=phpdoc.xml`
193
+
- open [index.html](./.build/phpdocs/index.html) in a browser
0 commit comments