PHP Package: php-fig/http-message

PHP library for HTTP messages handling with PSR standards compliance, providing robust features for web application development.

Current Version: 2.0
Last Updated: 2023-04-17
PHP Requirement: ^7.2 || ^8.0
Dependencies:
php-fig/http-client
php-fig/http-factory
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP-FIG HTTP Message library offers a comprehensive solution for managing HTTP requests and responses in PHP applications. With adherence to PSR standards, this library simplifies the handling of HTTP messages, supporting a wide range of functionalities crucial for modern web development. From parsing HTTP headers to streamlining content negotiation, this library enhances the efficiency and reliability of HTTP message management in PHP projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.0

Download Download v2.0

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-fig/http-message/2.0/loader.php';
require_once 'libs/php-fig/http-client/1.0.3/loader.php';
require_once 'libs/php-fig/http-factory/1.1.0/loader.php';

use Psr\Http\Message\ServerRequest;
use Psr\Http\Message\Uri;
use Psr\Http\Message\RequestFactory;

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