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

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

shahradelahi/easy-http
======================

An easy to use HTTP/WebSocket client for PHP

v1.3.0(3y ago)22293.1k↓50%1MITPHPPHP &gt;=8.0

Since Apr 18Pushed 3y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (8)Used By (1)

> **Help wanted:** If you can improve this library, please do so. ***Pull requests are welcome.***

Easy Http
=========

[](#easy-http)

[![Build Status](https://camo.githubusercontent.com/ad9a6dfa4cfae2860c9da2e4bbd1545feac42f68093ef8cf2ffd7bce2ae941ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73686168726164656c6168692f656173792d687474702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/shahradelahi/easy-http/build-status/master)[![Coverage Status](https://camo.githubusercontent.com/1a5eff7b8854e81b0de297c275eb9d33a7ab27aed4e86d49f5b9683d04bfe170/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73686168726164656c6168692f656173792d687474702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/shahradelahi/easy-http/?branch=master)[![Code Quality](https://camo.githubusercontent.com/db110eee049b0ec4ac57644a1757e88865ec663dff2d8a1b6690838108ea1e58/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73686168726164656c6168692f656173792d687474702f6d61737465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/shahradelahi/easy-http/?b=master)[![Latest Stable Version](https://camo.githubusercontent.com/75e81446f145d53d438e861d500f3a213103db36a8d975b6e492a82412a1b572/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686168726164656c6168692f656173792d687474702e737667)](https://packagist.org/packages/shahradelahi/easy-http)[![Minimum PHP Version](https://camo.githubusercontent.com/854124dd57cfd3aad3184fca9760bf1f33a5ec1e5d080cfbe8aa4e3337ba46e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/b62d114f4126d7af3e4dd84d22119f379c7fa9acf81885a4adbdfa71551bd1ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73686168726164656c6168692f656173792d687474702e737667)](https://github.com/shahradelahi/easy-http/LICENSE)

EasyHttp is a lightweight HTTP client that is easy to use and integrates with your existing PHP application.

- Simple interface for building query strings, headers, and body.
- Supports all HTTP methods, and supports streaming of large files.
- **No dependency**, no need to install any third-party libraries.
- Supports multiple/bulk requests and downloads large files.
- And much more!

#### Installation

[](#installation)

```
composer require shahradelahi/easy-http
```

 Click for help with installationInstall Composer
----------------

[](#install-composer)

If the above step didn't work, install composer and try again.

#### Debian / Ubuntu

[](#debian--ubuntu)

```
sudo apt-get install curl php-curl
curl -s https://getcomposer.org/installer | php
php composer.phar install

```

Composer not found? Use this command instead:

```
php composer.phar require "shahradelahi/easy-http"

```

#### Windows:

[](#windows)

[Download installer for Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)

#### Getting started

[](#getting-started)

```
$client = new \EasyHttp\HttpClient();
$response = $client->get('https://httpbin.org/get');

echo $response->getStatusCode(); // 200
echo $response->getHeaderLine('content-type'); // 'application/json'
echo $response->getBody(); // {"args":{},"headers":{},"origin":"**", ...}
```

=========

### Documentation

[](#documentation)

We've created some sample of usage in below and if you have questions or want a new feature, please feel free to open [an issue](https://github.com/shahradelahi/easy-http/issues/new).

- [Send simple request](/docs/send-request.md)
- [Breakdown of a large request into pieces](/docs/breakdown-large-request.md)
- [Send multiple requests at once](/docs/send-multiple-requests.md)
- [Download large files](/examples/download/download-large-file.php)
- [Upload multiple files](/examples/upload/upload-multiple-files.php)

### License

[](#license)

EasyHttp is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community9

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

Recently: every ~43 days

Total

6

Last Release

1305d ago

### Community

Maintainers

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

---

Top Contributors

[![shahradelahi](https://avatars.githubusercontent.com/u/17948260?v=4)](https://github.com/shahradelahi "shahradelahi (24 commits)")

---

Tags

clientcurlhttphttp-clientlibraymulti-processphprequestswebservicewebsockethttpphpclientcurlwebsoket

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M70](/packages/smi2-phpclickhouse)[swlib/saber

Swoole coroutine HTTP client

985145.0k27](/packages/swlib-saber)[khr/php-mcurl-client

wrap curl client (http client) for PHP 5.3; using php multi curl, parallel request and write asynchronous code

71219.8k6](/packages/khr-php-mcurl-client)

PHPackages © 2026

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