cryonighter / guzzle-http-logger
HTTP request and response logger for guzzle
1.0.1
2022-06-26 00:37 UTC
Requires
- php: >=7.2
- cryonighter/http-logger: ^1.0
- guzzlehttp/guzzle: >=6.0.0
Requires (Dev)
- phpunit/phpunit: ^8.4.0
This package is not auto-updated.
Last update: 2024-12-09 09:52:56 UTC
README
Highlights
System Requirements
You need:
- PHP >= 7.2.0 but the latest stable version of PHP is recommended
Install
Via Composer
$ composer require cryonighter/guzzle-http-logger
Usage
use Cryonighter\GuzzleHttpLogger\GuzzleClientFactory; use Cryonighter\HttpLogger\StreamHttpLogger; use GuzzleHttp\HandlerStack; $guzzleClient = GuzzleClientFactory::createClient(StreamHttpLogger::create(), HandlerStack::create(), ['http_errors' => false]);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ php vendor/phpunit/phpunit/phpunit tests
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email cryonighter@yandex.ru
instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.