PHP Package: amphp/http-client

The amphp/http-client library provides powerful async HTTP client functionality for efficient network requests.

Current Version: 5.3.3
Last Updated: 2025-05-21
PHP Requirement: >=8.1
Dependencies:
amphp/amp
php-fig/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/http-client is a PHP library that offers a robust asynchronous HTTP client for faster and more efficient network communication. It supports a wide range of features and options to streamline your HTTP requests and responses, making it an ideal choice for high-performance applications and services.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.3.3

Download Download v5.3.3

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/amphp/http-client/5.3.3/loader.php';
require_once 'libs/amphp/amp/3.1.0/loader.php';
require_once 'libs/php-fig/http-message/2.0/loader.php';

use Amp\Http\Client\HttpClient;

$obj = new HttpClient();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.