PHP Package: php-http/message

PHP library for HTTP message handling, providing versatile functionality for efficient data exchange.

Current Version: 1.16.2
Last Updated: 2024-10-02
PHP Requirement: ^7.2 || ^8.0
Dependencies:
php-http/message-factory
php-fig/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP HTTP Message library offers a comprehensive set of tools for managing HTTP messages, enabling developers to create, send, receive, and process HTTP messages efficiently. With robust features for headers, requests, and responses, this library simplifies the handling of HTTP communications in PHP applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.16.2

Download Download v1.16.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/php-http/message/1.16.2/loader.php';
require_once 'libs/php-http/message-factory/1.1.0/loader.php';
require_once 'libs/php-fig/http-message/2.0/loader.php';

use Http\Message\Request;
use Http\Message\Response;
use Http\Message\Stream;

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