Skip to content

Generates a gif of a countdown clock at the endpoint that can be used on websites and in emails

Notifications You must be signed in to change notification settings

automazeio/cr-Countdown-Gif-Generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Countdown Clock Generator (GIF) PHP

##Description Generates a GIF of a countdown clock when the end point is pinged using the parameters given under "using the generator". Useful for Websites and/or Emails.

##Specification

Runs on PHP5.5+ using the GIFEncoder Version 2.0 by László Zsidi

##Using the Generator

  Implement ClockInterface then:

  $clockItf = new Clock();
  // set $clock params ..
  $countdown = new CountDownClock($clockItf);
  //Call specifically (incase any further changes)
  $clock->generateImage();
?>

Example

There is a runnable example in the example folder called clock.php - this can be run off of the back of PHP's builtin web server

Licence: MIT

##Contributors

Changelog

04/11/2016 - v1.0.0

A lot of breaking changes so please look at the example if you are coming from an older iteration of this project

  • Merged in contributions
  • Refactored folder structure
  • Added autoloading / PSR-4
  • Coding Standards
  • Comments
  • Added support for no background images
  • Built example

About

Generates a gif of a countdown clock at the endpoint that can be used on websites and in emails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%