PHPackages                             tomhart/laravel-resilient-http-client - 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. tomhart/laravel-resilient-http-client

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

tomhart/laravel-resilient-http-client
=====================================

Laravel Resilient Http Client

1.0.0(6y ago)14MITPHPPHP ^7.2CI failing

Since Dec 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/TomHart/laravel-resilient-http-client)[ Packagist](https://packagist.org/packages/tomhart/laravel-resilient-http-client)[ Docs](https://github.com/)[ RSS](/packages/tomhart-laravel-resilient-http-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Resilient HTTP Client
=============================

[](#laravel-resilient-http-client)

This library allows you to make HTTP requests with built in cache resiliency. The client simply wraps around [Guzzle's](http://docs.guzzlephp.org/en/stable/index.html) `request` method, so it you already use that, this will be very easy to implement into your app.

### Usage

[](#usage)

```
use TomHart\HttpClient\Contracts\ResilientClientInterface;

$client = app(ResilientClientInterface::class);

$response = $client->request('GET', '/url');

```

You can publish the config-file with:

`php artisan vendor:publish --provider="TomHart\HttpClient\ResilientServiceProvider" --tag="config"`

### Caching

[](#caching)

This library utilises 2 different caches, one short term cache, and one longer term cache. The short term cache is used every time you call `request`. If the short term cache is a miss, and the HTTP request fails, it will only then look into the long term cache.

### Config Options

[](#config-options)

Config ItemUsageDefault`cache_time`What TTL (seconds) to use for the short term cache60`fallback_cache_time`What TTL (seconds) to use for the long term cache3600

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1374434?v=4)[Tom Hart](/maintainers/TomHart)[@TomHart](https://github.com/TomHart)

---

Top Contributors

[![tom-hart-sky-uk](https://avatars.githubusercontent.com/u/219799917?v=4)](https://github.com/tom-hart-sky-uk "tom-hart-sky-uk (6 commits)")

---

Tags

httpclienttomhartresilient

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomhart-laravel-resilient-http-client/health.svg)

```
[![Health](https://phpackages.com/badges/tomhart-laravel-resilient-http-client/health.svg)](https://phpackages.com/packages/tomhart-laravel-resilient-http-client)
```

###  Alternatives

[printu/labelary

PHP API for Labelary.com

34616.9k](/packages/printu-labelary)[printu/customerio

PHP API for Customer.io

241.1M2](/packages/printu-customerio)[8bitov/clickhouse-php-client

6966.6k](/packages/8bitov-clickhouse-php-client)[m6web/guzzle-http-bundle

Symfony bundle on top of Guzzle

17511.5k2](/packages/m6web-guzzle-http-bundle)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
