PHPackages                             swisnl/laravel-psr-http-client-bridge - 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. swisnl/laravel-psr-http-client-bridge

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

swisnl/laravel-psr-http-client-bridge
=====================================

Laravel PSR-18 HTTP Client Bridge

1.0.0(3mo ago)322.7k↓50.9%1MITPHPPHP ^8.2CI passing

Since Feb 29Pushed 1w ago1 watchersCompare

[ Source](https://github.com/swisnl/laravel-psr-http-client-bridge)[ Packagist](https://packagist.org/packages/swisnl/laravel-psr-http-client-bridge)[ Docs](https://github.com/swisnl/laravel-psr-http-client-bridge)[ RSS](/packages/swisnl-laravel-psr-http-client-bridge/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (27)Versions (5)Used By (1)

Laravel PSR-18 HTTP Client Bridge
=================================

[](#laravel-psr-18-http-client-bridge)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a1d73f738e0dab122a21e4bd089f6c0e01757449a5efe900c1c099bed0f5bb68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737769736e6c2f6c61726176656c2d7073722d687474702d636c69656e742d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/laravel-psr-http-client-bridge)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Buy us a tree](https://camo.githubusercontent.com/cec0a9b35a1c3235bdbe0d13ea8fbd866a23e30280ad6ca27078c1fd4ac1b709/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://plant.treeware.earth/swisnl/laravel-psr-http-client-bridge)[![Build Status](https://camo.githubusercontent.com/0785ee57d6a38ca4e94c028b5c2b9f967ebbdbd4f7d27ab18a6473b30750fd23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737769736e6c2f6c61726176656c2d7073722d687474702d636c69656e742d6272696467652f72756e2d74657374732e796d6c3f6c6162656c3d7465737473266272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/swisnl/laravel-psr-http-client-bridge/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7b68c157e06b680c7bb334e42af634efe2ee44bb9811f2706b2fd4ff2f959cea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737769736e6c2f6c61726176656c2d7073722d687474702d636c69656e742d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/swisnl/laravel-psr-http-client-bridge)[![Made by SWIS](https://camo.githubusercontent.com/ef6bdd6ab8d4f47bceb74dcf558b0915c6b419cbba320096324af0518e43091d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2546302539462539412538302d6d6164652532306279253230535749532d2532333037333741392e7376673f7374796c653d666c61742d737175617265)](https://www.swis.nl)

Provides a bridge to use the Laravel HTTP Client as PSR-18 (or Guzzle) HTTP Client, for usage with libraries that require such a Client. This allows you to:

- 🤖 Use request fakes and assertions in your tests
- 🔍 Debug requests in tools like Telescope or Pulse
- 🐛 See requests in error trackers such as Flare or Sentry
- 🚀 Etc.

Install
-------

[](#install)

Via Composer

```
composer require swisnl/laravel-psr-http-client-bridge
```

Usage
-----

[](#usage)

Simply instantiate the `Swis\Laravel\Bridge\PsrHttpClient\Client` and use it as you would use any other PSR-18 or Guzzle HTTP client.

```
$httpClient = new Swis\Laravel\Bridge\PsrHttpClient\Client();
$client = new My\Awesome\Api\Client($httpClient);
```

If you want to configure some request options, you can provide a callable that returns a `PendingRequest`.

```
$httpClient = new Swis\Laravel\Bridge\PsrHttpClient\Client(
    fn () => Http::withOptions(['proxy' => 'http://localhost:8125'])
);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jasper Zonneveld](https://github.com/swisnl)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/swisnl/laravel-psr-http-client-bridge) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS ❤️ Open Source
-------------------

[](#swis-heart-open-source)

[SWIS](https://www.swis.nl) is a web agency from Leiden, the Netherlands. We love working with open source software.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63% 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

Every ~249 days

Total

4

Last Release

107d ago

Major Versions

0.2.1 → 1.0.02026-03-20

PHP version history (2 changes)0.1.0PHP ^8.1

1.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8734305?v=4)[SWIS](/maintainers/swisnl)[@swisnl](https://github.com/swisnl)

---

Top Contributors

[![JaZo](https://avatars.githubusercontent.com/u/3475007?v=4)](https://github.com/JaZo "JaZo (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

httppsrclientlaravelhttp clientpsr-18Bridgeswisnl

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/swisnl-laravel-psr-http-client-bridge/health.svg)

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

###  Alternatives

[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.5k1.0B35.5k](/packages/guzzlehttp-guzzle)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

32041.3k](/packages/sunchayn-nimbus)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

157.1k](/packages/art4-requests-psr18-adapter)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

161.5k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

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