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

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

maleficarum/http-client
=======================

HTTP client component

5.0.2(5y ago)151.0k↓68.8%1[3 issues](https://github.com/pharaun13/maleficarum-http-client/issues)proprietaryPHPPHP ^7.2

Since Sep 27Pushed 4y ago2 watchersCompare

[ Source](https://github.com/pharaun13/maleficarum-http-client)[ Packagist](https://packagist.org/packages/maleficarum/http-client)[ RSS](/packages/maleficarum-http-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Maleficarum HTTP Client
=======================

[](#maleficarum-http-client)

Exceptions
----------

[](#exceptions)

To catch any kind of exception caused by this client just

```
} catch (\Maleficarum\Client\Http\Exception\HttpClientException $ex) {
```

You can get the HTTP response details for any `\Maleficarum\Client\Http\Exception\TransferException` using:

```
$exception->getStatusCode();
$exception->getRawResponse();
$exception->getRequestMethod();
$exception->getUrl();
```

Change Log
==========

[](#change-log)

This is the Maleficarum HTTP Client implementation.

\[5.0.2\] - 2021-01-20
----------------------

[](#502---2021-01-20)

### Changed

[](#changed)

- Removed raw response from TransferException

\[5.0.1\] - 2019-05-07
----------------------

[](#501---2019-05-07)

- Add to TransferException message information about http status code, request method, request url and raw response

\[5.0.0\] - 2018-10-10
----------------------

[](#500---2018-10-10)

### Changed

[](#changed-1)

- Complete rewrite of the package. New features:
    - Rest client multi mode implemented. (Better performance for high quantity api calls)
    - Client level load balancing implemented for both client modes - when creating a new client instance you pass a set of IPs to load balance over for the specified base url.
    - Added manual DNS resolve mode for improved performance when the base URL api definition is constant.

\[4.0.0\] - 2018-06-14
----------------------

[](#400---2018-06-14)

### Changed

[](#changed-2)

- This release provides new HTTP client implementation
    - Removed Curl class
    - Request exceptions has been replaced by TransferException
    - Added helper methods for GET, POST, PUT, PATCH and DELETE requests
    - Added functionality of modifying request options before request is performed (middleware)

\[3.0.0\] - 2017-11-22
----------------------

[](#300---2017-11-22)

### Added

[](#added)

- Exceptions improved
    - `\Maleficarum\Client\Http\Exception\HttpClientException` lets catching any kind of exception raised by the client
    - Exception's code reflects the HTTP response code.
    - Runtime and Logic exceptions used in a better way

\[2.0.2\] - 2017-10-24
----------------------

[](#202---2017-10-24)

### Added

[](#added-1)

- Added response body to request exception message

\[2.0.1\] - 2017-09-11
----------------------

[](#201---2017-09-11)

### Fixed

[](#fixed)

- Fix redirects handling
- Remove type hint for setBody and getBody methods

\[2.0.0\] - 2017-08-03
----------------------

[](#200---2017-08-03)

### Changed

[](#changed-3)

- Make use of nullable types provided in PHP 7.1 ()

\[1.2.1\] - 2017-08-09
----------------------

[](#121---2017-08-09)

### Added

[](#added-2)

- Set default operation timeout

\[1.2.0\] - 2017-07-07
----------------------

[](#120---2017-07-07)

### Added

[](#added-3)

- AbstractClient with possibility to set timeouts
- BasicClient

\[1.1.0\] - 2017-04-21
----------------------

[](#110---2017-04-21)

### Added

[](#added-4)

- Add PATCH method handling

\[1.0.3\] - 2016-10-06
----------------------

[](#103---2016-10-06)

### Fixed

[](#fixed-1)

- Fixed headers parsing

### Added

[](#added-5)

- Added getter for request information

\[1.0.2\] - 2016-10-04
----------------------

[](#102---2016-10-04)

### Changed

[](#changed-4)

- Replaced invalid CURLOPT\_HEADER option with the valid one - CURLOPT\_HTTPHEADER
- Changed methods visibility

\[1.0.1\] - 2016-09-27
----------------------

[](#101---2016-09-27)

### Added

[](#added-6)

- Added missing coma in composer.json file

\[1.0.0\] - 2016-09-27
----------------------

[](#100---2016-09-27)

### Added

[](#added-7)

- This was an initial release

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~121 days

Recently: every ~288 days

Total

14

Last Release

1980d ago

Major Versions

1.2.1 → 2.0.02017-08-09

2.0.2 → 3.0.02017-11-24

3.0.0 → 4.0.02018-06-18

4.0.0 → 5.0.02018-10-10

PHP version history (3 changes)1.0.1PHP &gt;=5.6

2.0.0PHP ^7.1

4.0.0PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![a-kowalski](https://avatars.githubusercontent.com/u/16385105?v=4)](https://github.com/a-kowalski "a-kowalski (14 commits)")[![MichalStrzelczyk](https://avatars.githubusercontent.com/u/36735429?v=4)](https://github.com/MichalStrzelczyk "MichalStrzelczyk (3 commits)")[![pharaun13](https://avatars.githubusercontent.com/u/18721637?v=4)](https://github.com/pharaun13 "pharaun13 (2 commits)")[![paq85](https://avatars.githubusercontent.com/u/913555?v=4)](https://github.com/paq85 "paq85 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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