PHPackages                             trin4ik/laravel-http-after - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. trin4ik/laravel-http-after

ActiveLibrary[HTTP &amp; Networking](/categories/http)

trin4ik/laravel-http-after
==========================

callback after for laravel http facade

v0.1.1(2y ago)11.8kMITPHPPHP &gt;7.4

Since Apr 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/trin4ik/laravel-http-after)[ Packagist](https://packagist.org/packages/trin4ik/laravel-http-after)[ Docs](https://github.com/trin4ik/laravel-http-after)[ RSS](/packages/trin4ik-laravel-http-after/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Callback "After" for Laravel HTTP Client
========================================

[](#callback-after-for-laravel-http-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85a56d53c5ead01ddb329e94468c5215c9f4a33186cf5396389ea13b45dd5227/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7472696e34696b2f6c61726176656c2d687474702d6166746572)](https://packagist.org/packages/trin4ik/laravel-http-after)[![Total Downloads](https://camo.githubusercontent.com/0475e5b3977fd7bf26a72a08e18abfbb681c8fc86b585b0a2f2806f304f40063/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7472696e34696b2f6c61726176656c2d687474702d6166746572)](https://packagist.org/packages/trin4ik/laravel-http-after)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require trin4ik/laravel-http-after
```

### Laravel

[](#laravel)

This package makes use of [Laravels package auto-discovery mechanism](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518)so **there is no need to do any futher steps** - skip directly to the [usage](#usage) section below. If for some reason you wish to opt-out of package auto discovery, check [the Laravel Docs](https://laravel.com/docs/8.x/packages#opting-out-of-package-discovery) for more details.

### Lumen

[](#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:

```
