PHPackages                             easy-http/contracts - 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. easy-http/contracts

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

easy-http/contracts
===================

HTTP client adapter contracts for PHP applications

v2.0.0(11mo ago)03471MITPHPPHP ^7.4|^8.0CI passing

Since Jun 15Pushed 1mo agoCompare

[ Source](https://github.com/easy-http/contracts)[ Packagist](https://packagist.org/packages/easy-http/contracts)[ RSS](/packages/easy-http-contracts/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (1)

[![](https://camo.githubusercontent.com/4d72bcee08ff9c2af10e9b42bcaacfce19ac3fe90f631f4964ceb3a996166f5d/68747470733a2f2f626c6f672e706c656574732e6f72672f696d672f61727469636c65732f656173792d687474702d6c6f676f2d3332302e706e67)](https://camo.githubusercontent.com/4d72bcee08ff9c2af10e9b42bcaacfce19ac3fe90f631f4964ceb3a996166f5d/68747470733a2f2f626c6f672e706c656574732e6f72672f696d672f61727469636c65732f656173792d687474702d6c6f676f2d3332302e706e67)

[![Build Status](https://github.com/easy-http/contracts/actions/workflows/tests.yml/badge.svg?branch=2.x)](https://github.com/easy-http/contracts/actions/workflows/tests.yml)[![Bugs](https://camo.githubusercontent.com/3e6ddadfbca3aaf32ec7e17b1705f5781ed62142449a63f0dcb84c0241067fee/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d656173792d687474705f636f6e747261637473266d65747269633d72656c696162696c6974795f726174696e67266272616e63683d322e78)](https://sonarcloud.io/component_measures?metric=reliability_rating&branch=2.x&id=easy-http_contracts)[![Bugs](https://camo.githubusercontent.com/58bfde9aefaf244376321cdd3c0a9e5e252ac4f4f797a5236c8f5f49ad8139ca/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d656173792d687474705f636f6e747261637473266d65747269633d636f766572616765266272616e63683d322e78)](https://sonarcloud.io/component_measures?metric=coverage&branch=2.x&id=easy-http_contracts)

 [![PHP Versions Supported](https://camo.githubusercontent.com/7139fb73731848d26c196173556d169d5f6f77c9ea6104284151a7783ba0f63e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e34253230746f253230382e332d3737376262332e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535)](#tada-php-support "PHP Versions Supported")

 🔖 Consistent interface for HTTP clients

[![](https://camo.githubusercontent.com/ad07fa0d4a4f193608eab1d46799d967ae2172c7efbcbfdb1938e95832ab5f78/68747470733a2f2f626c6f672e706c656574732e6f72672f696d672f61727469636c65732f656173792d687474702d636f6e7472616374732e706e67)](https://camo.githubusercontent.com/ad07fa0d4a4f193608eab1d46799d967ae2172c7efbcbfdb1938e95832ab5f78/68747470733a2f2f626c6f672e706c656574732e6f72672f696d672f61727469636c65732f656173792d687474702d636f6e7472616374732e706e67)

 🚀 Seamlessly switch between different HTTP clients using standardized adapter contracts

HTTP Client Adapter Contracts
=============================

[](#http-client-adapter-contracts)

[![Bugs](https://camo.githubusercontent.com/e782be8063d8ef63d7c1912a95ca1f203779d18256fe82f082cebffe1527f363/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d656173792d687474705f636f6e747261637473266d65747269633d73656375726974795f726174696e67266272616e63683d322e78)](https://sonarcloud.io/component_measures?metric=security_rating&branch=2.x&id=easy-http_contracts)[![Bugs](https://camo.githubusercontent.com/62f0e988623dda7859e216ffc04a6b3743dc09ef86d086e410985d0a626ac084/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d656173792d687474705f636f6e747261637473266d65747269633d62756773266272616e63683d322e78)](https://sonarcloud.io/component_measures?metric=bugs&branch=2.x&id=easy-http_contracts)[![Bugs](https://camo.githubusercontent.com/bf38d29304028e58e964e2960125eca1adedd046af2faaf69e9f35f521857fc3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d656173792d687474705f636f6e747261637473266d65747269633d636f64655f736d656c6c73266272616e63683d322e78)](https://sonarcloud.io/component_measures?metric=code_smells&branch=2.x&id=easy-http_contracts)

HTTP client adapter contracts for PHP applications. These contracts provide a standardized interface for working with different HTTP clients like Guzzle, Symfony, and others. By implementing these contracts, you can easily switch between different HTTP client implementations while maintaining a consistent API in your application.

📚 Check out the [Documentation](https://easy-http.com/docs) to learn how to use any adapter that implements these contracts.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance74

Regular maintenance activity

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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 ~147 days

Total

3

Last Release

44d ago

Major Versions

v2.0.0 → 3.x-dev2026-04-04

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/easy-http-contracts/health.svg)

```
[![Health](https://phpackages.com/badges/easy-http-contracts/health.svg)](https://phpackages.com/packages/easy-http-contracts)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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