psr7-cookies

🍪 bakes cookies for PSR-7 messages

MIT License

Downloads
2.1M
Stars
40
Committers
5
psr7-cookies - Support psr/http-message 2.0 and drop support PHP 7.0, 7.1 Latest Release

Published by hansott 10 months ago

  • #16
psr7-cookies - ⚡️ Remove unneeded files from git export (and run tests on PHP 8.0)

Published by hansott over 4 years ago

psr7-cookies - ✨ Allow SameSite=none

Published by hansott over 4 years ago

psr7-cookies - ✨ Version 3

Published by hansott over 5 years ago

See https://github.com/hansott/psr7-cookies/issues/5#issuecomment-483602120

Adding a cookie to a PSR-7 message is the only thing that this library should do, the other functionality is removed.

How to upgrade?

  • RequestCookies -> $request->getCookieParams() gives you all request cookies in the format you're used to.
  • Signer -> I'm not sure what I should recommend at this point, I'm not an expert at security. That's part of the reason why I'm dropping the sign cookie functionality.
  • ResponseCookies -> Just use SetCookie->addToResponse

Thanks for understanding.

Hans

psr7-cookies - Add SameSite cookie attribute

Published by hansott over 5 years ago

psr7-cookies -

Published by hansott over 5 years ago

  • Fixes #3
psr7-cookies - Breaking change for security improvement

Published by hansott over 6 years ago

Although it's not an API change, users should be prepared to see exceptions for signed cookies.

Signed cookies are now signed using the name AND value (previously only the value). This makes sure that a signed cookie cannot be renamed without changing the signature.

psr7-cookies - Bug fixes

Published by hansott over 8 years ago

  • Make sure cookie names are case insensitive in collections to prevent duplicates (c6b0001a6592c62021b887a1ac5e7e9fb54d4e8e)
  • Improved exception messages (cd830d5)
  • Improved test coverage (3bccfee)
  • RequestCookies & ResponseCookies now directly implement Iterator (before through CookieCollection interface), since only 2 downloads, no major/minor change. (c44b4ce)
psr7-cookies -

Published by hansott over 8 years ago