Provides very simple DTOs for Http Cookie. These DTOs are nothing more than data placeholders; they do not offer "advanced" capabilities. Feel free to extend them with whatever logic your application might require.
<?php
use Aedart\Http\Cookies\Cookie;
$cookie = new Cookie([
'name' => 'my_cookie',
'value' => 'sweet'
]);
<?php
use Aedart\Http\Cookies\SetCookie;
$cookie = new SetCookie([
'name' => 'my_cookie',
'value' => 'sweet',
'maxAge' => 60 * 5,
'secure' => true
]);
Please read the official documentation for additional information.
The mono repository is located at github.com/aedart/athenaeum
This package follows Semantic Versioning 2.0.0
BSD-3-Clause, Read the LICENSE file included in this package