PHP Package: amphp/http

amphp/http is a powerful PHP library for asynchronous HTTP requests handling with ease of use and high performance.

Current Version:
Last Updated:
PHP Requirement: >=7.1
Dependencies: amphp/amp, psr/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/http is a feature-rich PHP library designed for efficient and scalable handling of asynchronous HTTP requests. With its intuitive API and robust functionality, developers can easily manage HTTP communication in their applications. The library offers advanced features like streaming, HTTP/2 support, and request cancellation, making it a top choice for modern PHP projects.

🔗 View on GitHub

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/lib_version/autoload.php';

use Amp\Http\Client\Client;
use Amp\Http\Client\Request;
use Amp\Http\Client\Response;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;


$obj = new Amp\Http\Client\Client();
echo "✅ Example created successfully.";

?>

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