PHPackages                             messier1001/messier.httpclient - 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. messier1001/messier.httpclient

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

messier1001/messier.httpclient
==============================

A simple fluent HTTP client.

0.1.0(9y ago)010MITPHPPHP &gt;=7.1

Since Mar 29Pushed 9y agoCompare

[ Source](https://github.com/Messier-1001/Messier.HttpClient)[ Packagist](https://packagist.org/packages/messier1001/messier.httpclient)[ RSS](/packages/messier1001-messierhttpclient/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Messier.HttpClient
==================

[](#messierhttpclient)

A small HTTP client (wrapper around curl) with a small code footprint and fluent access.

Installation
------------

[](#installation)

```
composer require messier1001/messier.httpclient

```

or inside the `composer.json`:

```
{
   "require": {
      "php": ">=7.1",
      "messier1001/messier.httpclient": "^0.1.0"
   }
}
```

Usage
-----

[](#usage)

Sending a GET request
=====================

[](#sending-a-get-request)

```
try
{
   echo \Messier\HttpClient\Client::Create()
      ->setGetParameters( [ 'q' => 'Wetter Dresden' ] )
      ->sendGet( 'https://www.google.de/#' );
}
catch ( \Throwable $ex )
{
   echo $ex;
}
```

If some error is triggered a \\Messier\\HttpClient\\ClientException is thrown expecting a own error handling function is assigned.

Sending a POST request
----------------------

[](#sending-a-post-request)

```
echo \Messier\HttpClient\Client::Create()
   ->onError( function( $errorMessage ) { echo 'There was an error :-('; exit; } )
   ->sendPost( 'http://fooooo.baaaar.baaaaaaaazz', [ 'action' => 'foo' ] );
```

and much more :-)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

3380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f3f52312684925ff653f2a8354cd21e286c417af4ebe9d4bf9043c4ad0d68c3?d=identicon)[Messier 1001](/maintainers/Messier%201001)

---

Top Contributors

[![Messier-1001](https://avatars.githubusercontent.com/u/22859006?v=4)](https://github.com/Messier-1001 "Messier-1001 (1 commits)")[![ukadner](https://avatars.githubusercontent.com/u/129937296?v=4)](https://github.com/ukadner "ukadner (1 commits)")

### Embed Badge

![Health badge](/badges/messier1001-messierhttpclient/health.svg)

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

###  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.6k](/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)
