PHPackages                             gpn273/laravel-psr18-http-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. gpn273/laravel-psr18-http-bridge

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

gpn273/laravel-psr18-http-bridge
================================

Laravel PSR-18 HTTP Client Bridge

0.1.0(3y ago)010MITPHP

Since Jan 18Pushed 3y ago1 watchersCompare

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

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

Laravel PSR-18 Http Bridge
==========================

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

This package provides a bridge between the Laravel HTTP Client and PSR-18, allowing developers to use the Laravel HTTP Client as a PSR-18 compliant HTTP client in their PHP projects.

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

[](#installation)

You can install the package via composer:

```
composer require gpn273/laravel-psr18-http-bridge
```

Usage
-----

[](#usage)

The `Psr18Client` class accepts a `Closure` which must return a `Illuminate\Http\Client\PendingRequest`. This would be where you would initially set up your Laravel HTTP Client.

```
use Gpn273\LaravelPsr18HttpBridge\Psr18Client;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Support\Facades\Http;

$client = new Psr18Client(function (): PendingRequest {
    return Http::timeout(10)
        ->connectTimeout(3)
        ->acceptJson();
});
```

Conclusion
----------

[](#conclusion)

This package makes it easy to use the Laravel HTTP Client in any PHP project that adheres to the PSR-18 standard. It provides a seamless and powerful way for developers to use Laravel's HTTP Client in a PSR-18 compatible way, allowing for more flexibility and reusability.

Bug Reporting and Suggestions
-----------------------------

[](#bug-reporting-and-suggestions)

If you find any bugs or have any suggestions for improvements, please open an issue on the [GitHub repository](https://github.com/gpn273/laravel-psr18-http-bridge) or submit a pull request. Your feedback is greatly appreciated and will help us improve the package.

Contributing Guide
------------------

[](#contributing-guide)

1. **Bug Reports**: Before submitting a bug report, please perform a search in the issue tracker to make sure the issue has not already been reported. If a similar issue exists, please add a comment to the existing issue instead of creating a new one. If the issue is a new one, please provide a clear and concise description of the problem, including steps to reproduce the issue, and the expected behavior. Also, it would be helpful if you include the version of the package you are using, and the version of PHP.
2. **Feature Requests**: Before submitting a feature request, please perform a search in the issue tracker to make sure the request has not already been made. If a similar request exists, please add a comment to the existing request instead of creating a new one. If the request is a new one, please provide a clear and concise description of the proposed feature, including the problem it solves, and any relevant use cases.
3. **Code Changes**: Before submitting a code change, please create a fork of the repository and make the changes in your fork. Then, submit a pull request to the main repository. Please make sure that your code adheres to the PSR-2 coding standard and includes appropriate test coverage. Also, please include a clear and concise description of the changes you have made and the problem they solve.
4. **Communication**: All contributors should communicate in a respectful and professional manner, regardless of the medium (issues, pull requests, email, etc.).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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

1211d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

httplaravelpsr-18

### Embed Badge

![Health badge](/badges/gpn273-laravel-psr18-http-bridge/health.svg)

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

###  Alternatives

[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)

PHPackages © 2026

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