cryonighter/guzzle-http-logger

HTTP request and response logger for guzzle

1.0.1 2022-06-26 00:37 UTC

This package is not auto-updated.

Last update: 2024-11-11 09:30:11 UTC


README

Highlights

  • Framework Agnostic
  • Composer ready, PSR-2 and PSR-4 compliant

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.