PHPackages                             mechta-market/php-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. mechta-market/php-http-client

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

mechta-market/php-http-client
=============================

1.0.2(1y ago)02.2k↓50%1PHPPHP ^8.1

Since Jul 11Pushed 1y agoCompare

[ Source](https://github.com/mechta-market/php-http-client)[ Packagist](https://packagist.org/packages/mechta-market/php-http-client)[ RSS](/packages/mechta-market-php-http-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (1)

Обертка над GuzzleHTTP
======================

[](#обертка-над-guzzlehttp)

[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/bdc7a565b59b01ff7f634f9526f521c409297ff5356afc7c2f661c8d42789bb3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d65636874612d6d61726b65742f7068702d687474702d636c69656e742f746573742e796d6c)](https://camo.githubusercontent.com/bdc7a565b59b01ff7f634f9526f521c409297ff5356afc7c2f661c8d42789bb3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d65636874612d6d61726b65742f7068702d687474702d636c69656e742f746573742e796d6c)[![Packagist Downloads](https://camo.githubusercontent.com/2db1b9dbffd4dfc0090a67eebe914146b0208fdda8b61629f230edf6a9807177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65636874612d6d61726b65742f7068702d687474702d636c69656e74)](https://camo.githubusercontent.com/2db1b9dbffd4dfc0090a67eebe914146b0208fdda8b61629f230edf6a9807177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65636874612d6d61726b65742f7068702d687474702d636c69656e74)

Установка
---------

[](#установка)

```
composer require mechta-market/php-http-client
```

Примеры:
--------

[](#примеры)

### GET запрос

[](#get-запрос)

```
$httpClient = new HttpClient();
$response = $httpClient->get("example.org");

var_dump($response->successful());
```

### GET запрос с параметрами

[](#get-запрос-с-параметрами)

```
$httpClient = new HttpClient();
$httpClient->withQueryParameters(["foo" => "bar", "test" => "value"]);
$response = $httpClient->get("example.org");

var_dump($response->successful());
```

### POST запрос

[](#post-запрос)

```
$httpClient = new HttpClient();
$data = ["foo" => "bar"];
$response = $httpClient->post("example.org", $data);

var_dump($response->successful());
```

### POST запрос с body

[](#post-запрос-с-body)

```
$httpClient = new HttpClient();
$data = ["foo" => "bar"];
$httpClient->withBody($data);

$response = $httpClient->post("example.org");
```

### Bearer token

[](#bearer-token)

```
$httpClient = new HttpClient();
$httpClient->withToken("random_string_token_value");

$response = $httpClient->get("example.org");
```

### Basic auth

[](#basic-auth)

```
$httpClient = new HttpClient();
$httpClient->withBasicAuth("user", "random_string_token_value");

$response = $httpClient->get("example.org");
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~27 days

Total

3

Last Release

613d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.1PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![kaliyev](https://avatars.githubusercontent.com/u/15031244?v=4)](https://github.com/kaliyev "kaliyev (4 commits)")[![kaliyev-r](https://avatars.githubusercontent.com/u/88377573?v=4)](https://github.com/kaliyev-r "kaliyev-r (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mechta-market-php-http-client/health.svg)

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

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[illuminate/http

The Illuminate Http package.

11936.0M5.0k](/packages/illuminate-http)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25410.5M183](/packages/guzzlehttp-guzzle-services)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)

PHPackages © 2026

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