Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Psr7 Cookies Laravel Package

hansott/psr7-cookies

Add and manage HTTP cookies on PSR-7 responses with a simple SetCookie helper. Create custom cookies, delete cookies, set long-lived cookies, or set cookies that expire at a specific time, then attach them to any Psr\Http\Message\ResponseInterface.

View on GitHub
Deep Wiki
Context7
4.0.0
  • #16
3.0.2
3.0.0

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

2.0.1
  • Fixes #3
2.0.0

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.

1.0.1
  • 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)
1.0.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle