mikica/zf2-cookie

Simple controller plugin for reading and writing cookies

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:plugin

pkg:composer/mikica/zf2-cookie

1.03 2015-11-13 16:20 UTC

This package is auto-updated.

Last update: 2025-09-27 06:07:56 UTC


README

#Simple controller plugin for reading and writing cookies.

##Installation composer install mikica/zf2-cookie

You need to register new module. Add in file config/application.config.php:

'modules' => array(
    '...',
    'ZfCookie'
),

Voila! The module is ready to use.

##Usage

<?php

$this->cookie('key'); //Read cookie
$this->cookie('key', 'value'); //Write cookie
$this->cookie($key, $value, $expires); //Write cookie