PHPackages                             mumtazhaqiqy/c14-psr7-http-messages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mumtazhaqiqy/c14-psr7-http-messages

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mumtazhaqiqy/c14-psr7-http-messages
===================================

Codeigniter 4 Http Message to PSR-7 Http Messages

v1.0(4y ago)27MITPHPPHP &gt;=7.1

Since Apr 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mumtazhaqiqy/ci4-psr7-http-messages)[ Packagist](https://packagist.org/packages/mumtazhaqiqy/c14-psr7-http-messages)[ RSS](/packages/mumtazhaqiqy-c14-psr7-http-messages/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

CI4 PSR-7 HTTP Messages
=======================

[](#ci4-psr-7-http-messages)

This package convert codeigniter4-http object from and to objects implementing HTTP message interfaces defined by PSR-7.

Instalation
-----------

[](#instalation)

```
$ composer require mumtazhaqiqy/ci4-psr7-http-messages

$ composer require nyholm/psr7
```

Usage
-----

[](#usage)

The bridge provides an interface of a factory called `MumtazHaqiqy\Codeigniter4Psr7\Interfaces\HttpPsr7FactoryInterface`that builds objects implementing PSR-7 interfaces from `IncommingRequest` objects.

The following code snippet explains how to convert a `CodeIgniter\HTTP\IncomingRequest`to a `Nyholm\Psr7\ServerRequest` class implementing the `Psr\Http\Message\ServerRequestInterface` interface:

```
