PHP code example of marbie77 / emailcountdown
1. Go to this page and download the library: Download marbie77/emailcountdown 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/ */
marbie77 / emailcountdown example snippets
$emailCountdown = (new EmailCountdown\CircleCountdown())->setDestinationTime(! empty($_GET['dest_time']) ? $_GET['dest_time'] : null)
->setTextColor(! empty($_GET['text_color']) ? $_GET['text_color'] : null)
->setBackgroundColor(! empty($_GET['background_color']) ? $_GET['background_color'] : null);
// content type gif
header('Content-Type: image/gif');
// no caching of gif, so it gets reloaded every time
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
echo $emailCountdown->getGIFAnimation();