PHP Package: amphp/http

The amphp/http PHP library offers efficient and scalable HTTP client and server implementations for modern web applications.

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

Package Description

The amphp/http library provides high-performance HTTP client and server components for building fast and reliable web applications. Its flexible design allows seamless integration with various PHP frameworks and tools, enabling developers to create robust and efficient web solutions. With support for asynchronous operations and advanced features, amphp/http empowers developers to optimize network communication and enhance application performance.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.1.2

Download Download v2.1.2

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/2.1.2/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\Client;
use Psr\Http\Message\ServerRequest;
use Amp\Http\Server\Server;

$obj = new Client();
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.