caseyamcl / guzzle_request_logger
Guzzle v6+ Request Logging Middleware
v0.2
2018-01-25 17:51 UTC
Requires
- php: ~5.6|~7.0
- guzzlehttp/promises: ^1.3
- psr/http-message: ^1.0
- psr/log: ^1.0
Requires (Dev)
- phpunit/phpunit: >=5.4.3
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-10-12 06:50:19 UTC
README
A simple request logging middleware for Guzzle v6+
Structure
src/ - Source Files
tests/ - Unit Tests
Install
Via Composer
$ composer require caseyamcl/guzzle_request_logger
Usage
// $logger is any PSR-6-compatible logging class (e.g. Monolog, Symfony Logger, etc) $stack \GuzzleHttp\HandlerStack::create(); $stack->push(new RequestLogger($logger)); $client = new \GuzzleHttp\Client(['handler' => $stack]);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email caseyamcl@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.