PHP Package: mpdf/psr-http-message-shim

A PHP library that provides PSR-compliant HTTP message interfaces for seamless integration and compatibility with modern web systems.

Current Version: 2.0.1
Last Updated: Date not available
PHP Requirement: >=7.4
Dependencies:
php-fig/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PSR-HTTP-Message-Shim library by mPDF is a versatile tool to bridge the gap between legacy PHP applications and contemporary web frameworks. It enables easy adaptation to PSR-compliant standards, enhancing interoperability and improving overall system performance. With a focus on flexibility and ease of use, this library simplifies the handling of HTTP requests and responses, ensuring a seamless experience for developers. Upgrade your PHP project effortlessly with this essential shim.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.0.1

Download Download v2.0.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/mpdf/psr-http-message-shim/2.0.1/loader.php';
require_once 'libs/php-fig/http-message/2.0/loader.php';

use mPDF\PsrHttpMessageShim\Request;
use mPDF\PsrHttpMessageShim\Response;

$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.