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

ActiveLibrary

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

Provides a Symfony HttpClientInterface that wraps PSR17 and PSR18

v2.1.0(11mo ago)020.8kMITPHPPHP &gt;= 8.1CI passing

Since Sep 29Pushed 11mo 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 1mo 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

39

—

LowBetter than 86% of packages

Maintenance51

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

349d 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

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[laudis/neo4j-php-client

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

184616.9k31](/packages/laudis-neo4j-php-client)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)

PHPackages © 2026

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