PHP Package: spatie/laravel-http-logger

The Laravel HTTP Logger is a powerful package for logging HTTP requests and responses in Laravel applications efficiently and effectively.

Current Version: 1.11.1
Last Updated: 2025-02-17
PHP Requirement: ^7.4|^8.0
Dependencies: None

Package Description

The Laravel HTTP Logger by Spatie is a comprehensive logging tool that enhances the debugging process by capturing detailed information about incoming requests and outgoing responses. It offers powerful features such as request/response logging, customizable data formatting, and easy integration with Laravel projects. With this package, developers can gain valuable insights into application behavior, troubleshoot issues quickly, and improve overall performance.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.11.1

Download Download v1.11.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/spatie/laravel-http-logger/1.11.1/loader.php';
use Spatie\HttpLogger\HttpLoggerMiddleware;

$obj = new HttpLoggerMiddleware();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.