New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

trin4ik/laravel-http-after

callback after for laravel http facade
3,566 1

Larablocks Analysis

trin4ik/laravel-http-after works with Laravel 8, 9 and 10 (latest release v0.1.1, Oct 26, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 8, 9 and 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Oct 26, 2023)
  • 310 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Oct 26, 2023.
  • No releases in the last 12 months.
  • First released: Apr 26, 2022.
  • Monthly downloads: 310.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require trin4ik/laravel-http-after
Latest Version:v0.1.1
PHP:>7.4
Laravel:8 · 9 · 10
License:MIT
Last Updated:Oct 26, 2023
Links: GitHub  ·  Packagist
Maintainer: trin4ik

Callback "After" for Laravel HTTP Client

Latest Version on Packagist Total Downloads

"After" callback function with request, response and request time for http requests with Laravel Http facade.

Installation

You can install the package via composer:

composer require trin4ik/laravel-http-after

Laravel

This package makes use of Laravels package auto-discovery mechanism so there is no need to do any futher steps - skip directly to the usage section below. If for some reason you wish to opt-out of package auto discovery, check the Laravel Docs for more details.

Lumen

NOTE: Lumen is not officially supported by this package. However, we are currently not aware of any incompatibilities.

If you use Lumen register the service provider in bootstrap/app.php like so:

<?php
// bootstrap/app.php

$app->register(Trin4ik\LaravelHttpAfter\LaravelHttpAfterServiceProvider::class);

// If you want to use the Facades provided by the package
$app->withFacades();

Usage

use GuzzleHttp\Psr7\Message;
use Illuminate\Support\Facades\Http;

Http::after(function ($request, $response, $time) {
    echo "time: " . $time . PHP_EOL;
    echo "request:" . PHP_EOL . Message::toString($request) . PHP_EOL;
    echo "response:" . PHP_EOL . Message::toString($response) . PHP_EOL;
})->get('https://example.com');
time: 0.49774980545044
request:
GET / HTTP/1.1
User-Agent: GuzzleHttp/7
Host: example.com


response:
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 443743
Cache-Control: max-age=604800
Content-Type: text/html; charset=UTF-8
Date: Tue, 26 Apr 2022 15:16:17 GMT
Etag: "3147526947+gzip"
Expires: Tue, 03 May 2022 15:16:17 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Server: ECS (bsa/EB19)
Vary: Accept-Encoding
X-Cache: HIT
Content-Length: 1256

<!doctype html>...

Credits

based on laravel-http-client-logger by Anders Bilfeldt

Changelog

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

License

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

Related Packages

spondonit/zttp

A developer-experience focused HTTP client, optimized for most common use cases.

6,451 0
trin4ik/laravel-expo-push

Laravel Expo Push Notification

3,208 0
trin4ik/activeapi

generate api documentation from phpdoc

1,327 1
trin4ik/laravel-middleware-setlocale

Laravel "SetLocale" middleware from user data, http headers, post data etc

1,289 0
carsdotcom/php-request-class

Structure the logic around Guzzle API requests into object-oriented classes

32,433 2

Version History

Version Released PHP Laravel License
v0.1.1 >7.4 >8 MIT
v0.1.0 ^7.4 || ^8.0 ^8.0 || ^9.0 MIT