PHP code example of aedart / athenaeum-http-cookies
1. Go to this page and download the library: Download aedart/athenaeum-http-cookies library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aedart / athenaeum-http-cookies example snippets
use Aedart\Http\Cookies\Cookie;
$cookie = new Cookie([
'name' => 'my_cookie',
'value' => 'sweet'
]);
use Aedart\Http\Cookies\SetCookie;
$cookie = new SetCookie([
'name' => 'my_cookie',
'value' => 'sweet',
'maxAge' => 60 * 5,
'secure' => true
]);