PHPackages                             sam-it/symfony-http-psr18 - 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. sam-it/symfony-http-psr18

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

sam-it/symfony-http-psr18
=========================

Provides a Symfony HttpClientInterface that wraps PSR17 and PSR18

v2.1.0(1y ago)022.0kMITPHPPHP &gt;= 8.1CI passing

Since Sep 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SAM-IT/symfony-http-psr18)[ Packagist](https://packagist.org/packages/sam-it/symfony-http-psr18)[ RSS](/packages/sam-it-symfony-http-psr18/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Symfony HTTP Client PSR adapter
===============================

[](#symfony-http-client-psr-adapter)

This package wraps the relevant PSR interfaces to provide Symfony's `HttpClientInterface`.

- It is not complete with respect to the supported options
- It will throw exceptions when it encounters unsupported options as required by the contract
- It DOES NOT use lazy responses and which explicitly VIOLATES the contract.

Why is this needed
------------------

[](#why-is-this-needed)

Currently packages like `symfony/mailer` require an implementation of Symfony's `HttpClientInterface`. With the PSR standards related to sending HTTP requests maturing projects not using these components in a standalone fashion might be forced into using Symfony's HTTP Client when they already have another HTTP Client implementation set up.

This package provides a lightweight adapter that allows you to use your existing PSR18 Http Client and pass it to Symfony components that require Symfony's `HttpClientInterface`. Since we do not support lazy responses you should evaluate what kind of usage you expect before using this adapter.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance47

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~326 days

Total

4

Last Release

395d ago

Major Versions

v1.0.0 → v2.0.02024-03-14

PHP version history (2 changes)v1.0.0PHP &gt;= 8.0

v2.0.0PHP &gt;= 8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/18b13c534e3812b66a72645fe215301b54fc4d288f6396fee9385b681e27da18?d=identicon)[SamMousa](/maintainers/SamMousa)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sam-it-symfony-http-psr18/health.svg)

```
[![Health](https://phpackages.com/badges/sam-it-symfony-http-psr18/health.svg)](https://phpackages.com/packages/sam-it-symfony-http-psr18)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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