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.6k↑96.2%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 today

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

31

—

LowBetter than 66% of packages

Maintenance33

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

667d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.1PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26052605?v=4)[Rustmbek](/maintainers/Rustembek)[@Rustembek](https://github.com/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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/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.

25711.0M191](/packages/guzzlehttp-guzzle-services)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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