Registry / http-client / hansott-psr7-cookies

hansott-psr7-cookies

JSON →
library4.0.0phppackagistunverified

🍪 bakes cookies for PSR-7 messages

composer require hansott/psr7-cookies
INSTALL
IMPORT
SIG · HANSOTT-PSR7-COOKI
H
hansott-psr7-cookies
http-clientphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SetCookie
use HansOtt\PSR7Cookies\SetCookie;

Create and manipulate PSR-7 cookies

use HansOtt\PSR7Cookies\SetCookie; $cookie = SetCookie::create('session_id', 'abc123') ->withPath('/') ->withSecure(true); echo $cookie->__toString();
Debug
Known issues
breakingBreaking changes in v4.0.0 API
fix
Migrate from v3 to v4: use SetCookie::create() instead of new SetCookie()
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Resources
hansott-psr7-cookies — pip install hansott-psr7-cookies · libregistry