xielei/cookie

There is no license information available for the latest version (dev-master) of this package.

php cookie encapsulation

dev-master 2019-06-12 09:08 UTC

README

php cookie encapsulation

Installation

composer require xielei/cookie

Usage

$cookie = new \xielei\Cookie($salt='some string..');

$cookie->set($name='foo', $value='bar', $expire=null, $path=null, $domain=null, $secure=null, $httponly=true)

$cookie->get('foo');

$cookie->delete('foo');

$cookie->deleteAll();