Download the PHP package riki137/amp-client without Composer
On this page you can find all versions of the php package riki137/amp-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download riki137/amp-client
More information about riki137/amp-client
Files in riki137/amp-client
Package amp-client
Short Description PHP8.2+ AMPHPv3 adapter for Symfony HttpClient
License MIT
Homepage https://symfony.com
Informations about the package amp-client
AMPHPv5 for Symfony HttpClient
This package is deprecated and should be replaced by efabrica/revolt-curl-client.
This is a partial fork of @nicolas-grekas 's pull request for SymfonyHttpClient that adds support for using AMPHPv3 (AMPHP HTTPClient v5) with PHP >= 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
If you use this client, you should include this piece of code that executes when your application is closing (onShutdown, terminate event, etc.):
This ensures that all pending requests are completed before the application is closed and allows you to avoid PHP <8.4's destructor suspension.
All versions of amp-client with dependencies
psr/log Version ^1|^2|^3
symfony/http-client-contracts Version ^3.4.1
symfony/service-contracts Version ^2.5|^3
amphp/http-client Version ^5.0
symfony/http-client Version ^7.0