PHPackages                             flikson/laravel-service-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. flikson/laravel-service-client

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

flikson/laravel-service-client
==============================

HTTP client package for Laravel with retry, multi-host, circuit breaker, and async support

1.0.1(3mo ago)01↓93.3%BSD-3-ClausePHPPHP &gt;=8.4

Since Apr 4Pushed 3mo agoCompare

[ Source](https://github.com/fliksonr/laravel-service-client)[ Packagist](https://packagist.org/packages/flikson/laravel-service-client)[ RSS](/packages/flikson-laravel-service-client/feed)WikiDiscussions master Synced today

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

Service Client Bundle
=====================

[](#service-client-bundle)

> 🌐 **Language:** [English](README.md) | [Русский](README.ru.md)

Laravel-focused HTTP client with retry, multi-host failover, circuit breaker, and async support via PHP Fibers.

Features
--------

[](#features)

- **Retry with exponential backoff** — configurable delay, jitter, and status codes
- **Multi-host strategies** — failover, round-robin, parallel
- **Circuit breaker** — automatic failure detection and recovery
- **Async via Fibers** — non-blocking requests with Revolt event loop
- **Middleware pipeline** — extensible request/response processing
- **Multiple auth methods** — Bearer, API Key, Basic
- **Typed requests** — ISP-based interfaces with response mapping

Requirements
------------

[](#requirements)

- PHP 8.4+
- Guzzle 7.9+
- Illuminate Support/Contracts 11+ | 12+

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

[](#installation)

```
composer require flikson/laravel-service-client
```

Laravel
-------

[](#laravel)

Laravel package discovery is supported via `extra.laravel.providers`.

Publish config:

```
php artisan vendor:publish --tag=deeep-service-client-config
```

The published config file path:

```
config/deeep_service_client.php
```

If package discovery is disabled, register provider manually in `config/app.php`:

```
'providers' => [
    // ...
    Deeep\ServiceClient\Laravel\ServiceClientServiceProvider::class,
],
```

Resolve client from container:

```
use Deeep\ServiceClient\Contract\HttpClientInterface;

$client = app(HttpClientInterface::class);
```

Configuration
-------------

[](#configuration)

```
