aedart / athenaeum-http-cookies
Simple DTOs for Http Cookie and Set-Cookie
10.10.0
2026-06-08 07:23 UTC
Requires
- php: ^8.4
- aedart/athenaeum-contracts: ^10.10
This package is auto-updated.
Last update: 2026-06-23 06:48:05 UTC
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