Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.23 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.23 KB

CuePhp-cookie

Build Status Code Coverage

Latest Stable Version Total Downloads

Instanll

compose require cuephp/cookie

Usage

extra from header

use CuePhp\CookieManager;


$cookie = CookieManager::createFromHeaders($cookieString); // cookie string is  from http header

// get cookie value
$cookie->getValue();

Set value to Header

use CuePhp\CookieManager;

$cookie = CookieManager::new( 'name', 'value' );
CookieManager::setToClientHeaders($cookie); // will set response header set-cookie

Set value With Options

use CuePhp\CookieManager;
$cookie = CookieManager::new( 'name', 'value', {$options} );
options
  • expires:
  • path:
  • secure:
  • domain:
  • httponly:
  • samesite: