PHPackages                             riki137/amp-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. riki137/amp-client

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

riki137/amp-client
==================

PHP8.2+ AMPHPv3 adapter for Symfony HttpClient

7.0.3(1y ago)02.0kMITPHPPHP &gt;=8.2

Since Apr 3Pushed 1y agoCompare

[ Source](https://github.com/riki137/amp-client)[ Packagist](https://packagist.org/packages/riki137/amp-client)[ Docs](https://symfony.com)[ RSS](/packages/riki137-amp-client/feed)WikiDiscussions 7.0 Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

AMPHPv5 for Symfony HttpClient
==============================

[](#amphpv5-for-symfony-httpclient)

> This package is deprecated and should be replaced by [efabrica/revolt-curl-client](https://github.com/efabrica-team/revolt-curl-client).

This is a partial fork of [@nicolas-grekas 's pull request](https://github.com/symfony/symfony/pull/54179) for SymfonyHttpClient that adds support for using AMPHPv3 (AMPHP HTTPClient v5) with PHP &gt;= 8.2 instead of waiting for PHP 8.4.

**This is not a full fork that replaces the original Symfony HttpClient, but a separate package that can be used alongside it.**

The code for HTTP client and it's other adapters is removed, only it's AMPHPv3-related and necessary `@internal` code is kept.

It solves the problem of the destructor suspension by deferring the destruction.

### Usage

[](#usage)

```
composer require riki137/amp-client
```

```
use Riki137\AmpClient\AmpHttpClientV5;

$client = new AmpHttpClientV5($options, null, $maxHostConnections, $maxPendingPushes);
// implements HttpClientInterface, as you're used to
$client->request('GET', 'https://example.com');
```

---

If you use this client, you should include this piece of code that executes when your application is closing (onShutdown, terminate event, etc.):

```
\Revolt\EventLoop::run();
```

This ensures that all pending requests are completed before the application is closed and allows you to avoid PHP &lt;8.4's destructor suspension.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.6% 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 ~46 days

Total

4

Last Release

635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1672f5f9f3ea6591c73db424f279144a4634bda6f8cfbd2038680394e8007ccd?d=identicon)[riki137](/maintainers/riki137)

---

Top Contributors

[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (837 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (155 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (75 commits)")[![fancyweb](https://avatars.githubusercontent.com/u/3658119?v=4)](https://github.com/fancyweb "fancyweb (35 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (30 commits)")[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (23 commits)")[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (11 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (10 commits)")[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (8 commits)")[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (8 commits)")[![lyrixx](https://avatars.githubusercontent.com/u/408368?v=4)](https://github.com/lyrixx "lyrixx (7 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (6 commits)")[![HypeMC](https://avatars.githubusercontent.com/u/2445045?v=4)](https://github.com/HypeMC "HypeMC (5 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (4 commits)")[![ogizanagi](https://avatars.githubusercontent.com/u/2211145?v=4)](https://github.com/ogizanagi "ogizanagi (4 commits)")[![tigitz](https://avatars.githubusercontent.com/u/1524501?v=4)](https://github.com/tigitz "tigitz (4 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (4 commits)")[![DavidPrevot](https://avatars.githubusercontent.com/u/3936728?v=4)](https://github.com/DavidPrevot "DavidPrevot (3 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (3 commits)")[![alamirault](https://avatars.githubusercontent.com/u/9253091?v=4)](https://github.com/alamirault "alamirault (3 commits)")

---

Tags

http

### Embed Badge

![Health badge](/badges/riki137-amp-client/health.svg)

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

###  Alternatives

[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k314.0M3.4k](/packages/symfony-http-client)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k4.5M81](/packages/amphp-http-server)[async-aws/core

Core package to integrate with AWS. This is a lightweight AWS SDK provider by AsyncAws.

10139.5M66](/packages/async-aws-core)[php-http/logger-plugin

PSR-3 Logger plugin for HTTPlug

29025.3M69](/packages/php-http-logger-plugin)

PHPackages © 2026

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