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.

Maintainers

Package info

github.com/davidkastanek/cookies

Issues

pkg:composer/gutter/cookies

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

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

This package is not auto-updated.

Last update: 2026-03-07 12:13:44 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