xielei/cookie

php cookie encapsulation

1.0.1 2019-11-06 01:49 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();