PHP Package: php-http/httplug

HTTP client library for PHP applications providing abstraction for HTTP requests and responses.

Current Version: 2.4.1
Last Updated: 2024-09-23
PHP Requirement: ^7.1 || ^8.0
Dependencies:
php-http/psr7
php-http/client-common
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

HTTP client library for PHP applications that offers an abstraction for handling HTTP requests and responses. It allows developers to easily integrate and work with various HTTP clients and libraries, enhancing the efficiency and flexibility of web applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.4.1

Download Download v2.4.1

Code Integration Example

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

<?php
// Example from PHPlibraries.com
require_once 'libs/php-http/httplug/2.4.1/loader.php';
require_once 'libs/php-http/psr7/{lib_version}/loader.php';
require_once 'libs/php-http/client-common/2.7.2/loader.php';

use Http\Client\Common\HttpAsyncClient;

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