gutter/cookies

There is no license information available for the latest version (v1.0.0) of this package.

Communication between PHP Sessions and browser cookies.

v1.0.0 2018-04-19 12:30 UTC

This package is not auto-updated.

Last update: 2025-06-14 08:52:48 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