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(1y ago)03552MITPHPPHP ^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 today

READMEChangelogDependencies (3)Versions (9)Used By (2)

[![](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

43

—

FairBetter than 89% of packages

Maintenance72

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~331 days

Total

8

Last Release

78d ago

Major Versions

v0.2.0 → v1.0.02022-05-04

1.x-dev → 2.x-dev2025-06-15

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

PHP version history (2 changes)v0.1.0PHP ^7.4

v0.2.0PHP ^7.4|^8.0

### 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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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