keerill/laravel-http-client-logger

Logger Request and responses HTTP client for laravel
2,828
Install
composer require keerill/laravel-http-client-logger
Latest Version:v1.4.3
PHP:^8.2
Laravel:10 · 11 · 12
License:MIT
Last Updated:Sep 16, 2026
Links: GitHub  ·  Packagist
Maintainer: kEERill

Laravel Http Logger

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require keerill/laravel-http-client-logger

Usage

use Psr\Log\LoggerInterface;

/** @var LoggerInterface $logger */
$logger = logger();

$response = Http::baseUrl('http://microservice/api/v1')
        ->withMiddleware(new HttpLoggerMiddleware($logger, new ContextFormatter()))
        ->post('/healthcheck', ['test' => 'message'])
        ->json();

// ...

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

coolonce/logger-interface

This package allows you to send data for logging to the HTTP daemon associated w...

4,640 1
imer/laravel-query-table

Laravel plugin for displaying query results as a table with built-in filtering/s...

2,068 0
mitydigital/statamic-logger

Detailed, customisable and human-friendly logging for Statamic.

15,845 2
rap2hpoutre/laravel-epilog

More info in laravel's log

4,567 25

Version History

Version Released PHP Laravel License
v1.4.3 ^8.2 ^10.0 || ^11.0 || ^12.0 MIT
v1.4.2 ^8.2 ^10.0 || ^11.0 || ^12.0 MIT
v1.4.1 ^8.2 ^10.0 || ^11.0 || ^12.0 MIT
v1.4.0 ^8.2 ^10.0 || ^11.0 || ^12.0 MIT
v1.3.1 ^8.2 ^12.0 MIT