hansott / psr7-cookies

🍪 bakes cookies for PSR-7 messages
https://hansott.github.io
MIT License
40 stars 4 forks source link

Improve API #15

Open hansott opened 3 years ago

hansott commented 3 years ago

Currently it's kind of a PITA to set custom properties for cookies...

e.g. you want to set a normal cookie with SameSite specified (or maybe combined with a expires in)

Goals:

Chi-teck commented 3 years ago

That's not an issue in PHP 8 anymore.

$cookie = new SetCookie('foo', 'bar', httpOnly: true);