PHPackages                             mohamedhekal/integrator - 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. mohamedhekal/integrator

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

mohamedhekal/integrator
=======================

Resilient Laravel HTTP client toolkit: retries, rate limits, circuit breakers, and auth strategies

v0.1.0(1mo ago)00MITPHPPHP ^8.2CI passing

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/mohamedhekal/integrator)[ Packagist](https://packagist.org/packages/mohamedhekal/integrator)[ Docs](https://github.com/mohamedhekal/integrator)[ RSS](/packages/mohamedhekal-integrator/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

Integrator
==========

[](#integrator)

[![CI](https://github.com/mohamedhekal/integrator/actions/workflows/tests.yml/badge.svg)](https://github.com/mohamedhekal/integrator/actions)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/c2588b5670f2c910b8cc849ace22a22efda8956b7c2f797d11d2096bbfc7b1f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d3737374242342e737667)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/b38aa2ff655206bfa9f97c1aeced06f25bb3e31fb085fa974c79934c25469f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313125324631322d4646324432302e737667)](https://laravel.com/)

**Search terms:** laravel, http, api, retry, circuit-breaker, rate-limit, integrations, php, laravel-package, http-client, backoff, third-party-api.

Resilient Laravel HTTP client toolkit for third-party APIs: retries with backoff, `Retry-After` handling, circuit breakers, and auth strategies.

Problem
-------

[](#problem)

Every vendor integration reinvents retries, rate-limit waits, and failure isolation—usually inconsistently and without tests.

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

[](#installation)

```
composer require mohamedhekal/integrator
php artisan vendor:publish --tag=integrator-config
```

Quick start
-----------

[](#quick-start)

```
use Hekal\Integrator\Facades\Integrator;

$response = Integrator::client('demo')->post('/v1/shipments', [
    'reference' => 'ORD-1',
]);

$data = $response->json();
```

Configure named integrations in `config/integrator.php`:

```
'integrations' => [
    'shipping' => [
        'base_url' => env('SHIPPING_API_URL'),
        'auth' => [
            'type' => 'api_key',
            'api_key' => env('SHIPPING_API_KEY'),
            'api_key_header' => 'X-API-Key',
        ],
        'retry' => [
            'enabled' => true,
            'max_attempts' => 3,
            'base_delay_ms' => 200,
            'retry_on' => [429, 500, 502, 503, 504],
        ],
        'circuit_breaker' => [
            'enabled' => true,
            'failure_threshold' => 5,
            'recovery_seconds' => 60,
        ],
    ],
],
```

Features (v0.1)
---------------

[](#features-v01)

- Named clients via `Integrator::client()`
- Auth: `none`, `bearer`, `basic`, `api_key`
- Exponential backoff + optional jitter
- Honor `Retry-After` on 429 (capped)
- Cache-backed circuit breaker (closed / open / half-open)
- `IntegrationException` with status/body/error code
- Optional request logging

Testing
-------

[](#testing)

```
composer install
composer test
```

Architecture
------------

[](#architecture)

See [docs/architecture.md](docs/architecture.md).

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9d7c092a109fe780c7efd87ce4142eae2c0cec0f92fd1e87e769bec5661953b?d=identicon)[mohamedhekal](/maintainers/mohamedhekal)

---

Top Contributors

[![mohamedhekal](https://avatars.githubusercontent.com/u/21014387?v=4)](https://github.com/mohamedhekal "mohamedhekal (4 commits)")

---

Tags

api-integrationcircuit-breakerhttp-clientlaravellaravel-packagephphttpphpapilaravelhttp clientlaravel-packageretryrate limitcircuit breakerbackoffintegrationsthird-party api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mohamedhekal-integrator/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedhekal-integrator/health.svg)](https://phpackages.com/packages/mohamedhekal-integrator)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k118.2M1.0k](/packages/laravel-socialite)[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

1.0k2.5M152](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

24795.1k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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