gutter / cookies
Communication between PHP Sessions and browser cookies.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/gutter/cookies
Requires
- nette/di: ^2.4
- nette/http: ^2.4
Requires (Dev)
- phpunit/phpunit: ^7.1
- tracy/tracy: ^2.4
This package is not auto-updated.
Last update: 2025-10-04 10:22:27 UTC
README
Nette extension for communication between PHP Sessions and browser cookies.
Installation
The best way to install Gutter\Cookies is via Composer:
$ composer require gutter/cookies
Usage
You can use the Cookies as an extension.
Configuration
First you have to set the extension up in config.neon
.
extensions:
cookies: Gutter\Cookies\DI\CookiesExtension
cookies:
maxAge: 365 days
Implementation
The usage in the code is demonstrated in tests/Manager.phpt
.
Development
Running tests
You can run Unit tests like this: php7.2 vendor/bin/phpunit --bootstrap vendor/autoload.php tests/ManagerTest.php