dogado / laravel-cookie-manager
cookie manager library with different capabilities to modify cookies
Installs: 5 803
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- cbschuld/browser.php: ^1.9
- symfony/http-foundation: ^5.3.7|^6.0
Requires (Dev)
- fakerphp/faker: ^1.14
- phpstan/phpstan: ^0.12.89
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-10-29 06:30:59 UTC
README
Introduction
A client library package for Laravel based projects, maintained by the dogado GmbH.
It provides a middleware class that automatically transforms cookies to be
Secure
if the request is SSL
encrypted and, if the browser supports it, sets the
SameSite=None
attribute.
To learn more about SameSite
cookies and how to use them, check out the
web.dev blog from Google or the
Mozilla docs.
Requirements
- php
^7.3
or^8.0
symfony/http-foundation
version^5.3.7
or^6.0
Installation
composer require dogado/laravel-cookie-manager
Configure your Kernel to use the middleware
Add the following class to the appropriate Laravel kernel middleware configuration according to your requirements.
\Dogado\Laravel\CookieManager\Http\Middleware\SecureResponseCookies::class
License
The MIT License (MIT). Please see License File for more information.