PHPackages                             hansott/psr7-cookies - 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. hansott/psr7-cookies

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

hansott/psr7-cookies
====================

🍪 bakes cookies for PSR-7 messages

4.0.0(2y ago)402.2M↓23.9%5[3 issues](https://github.com/hansott/psr7-cookies/issues)[3 PRs](https://github.com/hansott/psr7-cookies/pulls)19MITPHPPHP ^7.0 || ^8.0

Since Jul 2Pushed 2y ago2 watchersCompare

[ Source](https://github.com/hansott/psr7-cookies)[ Packagist](https://packagist.org/packages/hansott/psr7-cookies)[ Docs](https://github.com/hansott/psr7-cookies)[ GitHub Sponsors](https://github.com/hansott)[ RSS](/packages/hansott-psr7-cookies/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (10)Used By (19)

[![PSR-7 Cookies](art/psr7-cookies.jpg)](art/psr7-cookies.jpg)
==============================================================

[](#)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8fa484dd4ab9eb447febc86062e163858fe0ecc0efc9be624d8aae5c2465af32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68616e736f74742f707372372d636f6f6b6965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hansott/psr7-cookies)[![Supported PHP versions](https://camo.githubusercontent.com/67a4238dfb3922f2ad289a4a074ff01e18ba5af6a1b718803600fb2ccd9630f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f68616e736f74742f707372372d636f6f6b6965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hansott/psr7-cookies)[![Total Downloads](https://camo.githubusercontent.com/11ac9365ee24e8194edcabb5a7f3e96df7e6772b76bf6446d1202bae08b87707/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68616e736f74742f707372372d636f6f6b6965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hansott/psr7-cookies)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Install
-------

[](#install)

Via Composer

```
$ composer require hansott/psr7-cookies
```

Usage
-----

[](#usage)

### Add cookie to Psr\\Http\\Message\\ResponseInterface

[](#add-cookie-to-psrhttpmessageresponseinterface)

```
