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

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

mvaliolahi/http
===============

PHP Http Client

v1.0.0(5y ago)0271MITPHPCI failing

Since May 12Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

Http Client
-----------

[](#http-client)

[![Latest Stable Version](https://camo.githubusercontent.com/8e194123481cbe926dc2caea3082988628a6c38476eee96fd3be4510112cfab9/68747470733a2f2f706f7365722e707567782e6f72672f6d76616c696f6c6168692f687474702f762f737461626c65)](https://packagist.org/packages/mvaliolahi/http)[![Total Downloads](https://camo.githubusercontent.com/ab4314ccd8e141f4a973d1a2b1b5a638eb322a459c30525e3c2d2eab327da793/68747470733a2f2f706f7365722e707567782e6f72672f6d76616c696f6c6168692f687474702f646f776e6c6f616473)](https://packagist.org/packages/mvaliolahi/http)[![Build Status](https://camo.githubusercontent.com/13f1c3552b38059135c334acc1113aeacc2608a06663d7b5089d4176c4a13d8b/68747470733a2f2f7472617669732d63692e6f72672f6d76616c696f6c6168692f687474702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mvaliolahi/http)[![PHP-Eye](https://camo.githubusercontent.com/266e6591743105337728bbf3af9f60d27fe4c822b989d88016db47681c2d7f2a/68747470733a2f2f7068702d6579652e636f6d2f62616467652f6d76616c696f6c6168692f687474702f7465737465642e7376673f7374796c653d666c6174)](https://php-eye.com/package/mvaliolahi/http)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)

Http Client / Contract

#### Install

[](#install)

```
composer require mvaliolahi/http
```

#### 1. Instantiate Client

[](#1-instantiate-client)

```
    $client =  new \Mvaliolahi\Http\Curl();
```

#### 2. Available methods:

[](#2-available-methods)

```
    public function get($url, $parameters = null, $headers = [], $options = []);
    public function post($uri, $parameters, $headers = [], $options = []);
    public function put($uri, $parameters, $headers = [], $options = []);
    public function patch($url, $parameters, $headers = [], $options = []);
    public function delete($uri, $parameters, $headers = [], $options = []);

    public function errors();
    public function code();
    public function client($client = null);
    public function disableSSL($flag)
    public function originalResponse()
```

#### 3. Implements new client

[](#3-implements-new-client)

Just impelemet the `Mvaliolahi\Http\Contracts\HttpClientContract` interface and done!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8a3eaee2623560bfdc9906358e1805abd4adf9fcd9170eba274fcfd8a51443?d=identicon)[mvaliolahi](/maintainers/mvaliolahi)

---

Top Contributors

[![mvaliolahi](https://avatars.githubusercontent.com/u/6920600?v=4)](https://github.com/mvaliolahi "mvaliolahi (2 commits)")

---

Tags

http clientphp http clientHTTP Contract

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M440](/packages/kriswallsmith-buzz)[react/http

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

78126.4M414](/packages/react-http)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[laminas/laminas-http

Provides an easy interface for performing Hyper-Text Transfer Protocol (HTTP) requests

3729.5M266](/packages/laminas-laminas-http)

PHPackages © 2026

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