compose require cuephp/cookie
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
use CuePhp\CookieManager;
$cookie = CookieManager::new( 'name', 'value', {$options} );
- expires:
- path:
- secure:
- domain:
- httponly:
- samesite: