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.
Set-Cookie headers, secure/HTTP-only flags, or custom serialization).symfony/http-foundation or laravel/session).defuse/php-encryption or paragonie/halite).$_COOKIE/$_SERVER reliance).For Executives: "This package lets us standardize cookie handling across our PSR-7-based APIs/microservices, reducing custom code and ensuring compliance with modern PHP practices. It’s a lightweight, MIT-licensed solution that integrates seamlessly with our existing middleware stack, cutting development time for features like auth tokens or analytics tracking. Think of it as ‘Laravel’s cookie system, but for PSR-7’—ideal if we’re expanding into serverless or microservices."
For Engineering:
*"The hansott/psr7-cookies package provides a PSR-7-compliant way to manipulate cookies (e.g., Set-Cookie, parsing) without framework lock-in. Key benefits:
Secure, HttpOnly, and SameSite flags (critical for GDPR/compliance).paragonie/halite for signed cookies if needed."*How can I help you explore Laravel packages today?