Skip to content

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

License

Notifications You must be signed in to change notification settings

Mattamorphic/Countdown-Gif-Generator

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

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages