aedart/athenaeum-http-cookies

Simple DTOs for Http Cookie and Set-Cookie


README

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.

Examples

<?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
]);

Documentation

Please read the official documentation for additional information.

Repository

The mono repository is located at github.com/aedart/athenaeum

Versioning

This package follows Semantic Versioning 2.0.0

License

BSD-3-Clause, Read the LICENSE file included in this package