PHPackages                             conformity/http-message - 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. conformity/http-message

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

conformity/http-message
=======================

A PSR7 Compliant http-message implementation

015

Since Nov 23Compare

[ Source](https://github.com/conformity/http-message)[ Packagist](https://packagist.org/packages/conformity/http-message)[ RSS](/packages/conformity-http-message/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

http-message
============

[](#http-message)

A PSR7 Compliant http-message implementation.

This package provides a simple implementation of the PSR7 specification.

It is at its core a fork of the most feature rich psr7 implementation zend/diactoros.

However we found package a little bloated with no support for cookies (admittedley not within the scope of the psr).

We also feel the included server while functional isn't needed for a full decoupled implementation.

So we took the existing well tested codebase, added response cookie support, added a way to encrypt/decrypt cookies via a middleware and removed the server and emitters.

Everything else still exists in its current form with the namespaces changed to `Conformity\Http\Message`

Included in the base Response class is the new `Conformity\Http\Message\Response\Cookie\CookieTrait` which uses the new `Conformity\Http\Message\Response\Cookie\Cookie` class.

The cookie trait provides an immutable interface inline with the PSR7 spec for headers

```
