aedart/athenaeum-http-cookies

Simple DTOs for Http Cookie and Set-Cookie

Maintainers

👁 aedart

Package info

github.com/aedart/athenaeum-http-cookies

Homepage

pkg:composer/aedart/athenaeum-http-cookies

Statistics

Installs: 86

Dependents: 1

Suggesters: 0

Stars: 0

10.10.0 2026-06-08 07:23 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 53b5e8073dc3656c382b915b3199548196d01e51

  • Alin Eugen Deac <aedart.woop@gmail.com>

httpcookiedtoAthenaeumSet-Cookie

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