承接 marbie77/emailcountdown 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marbie77/emailcountdown

最新稳定版本:2.1.1

Composer 安装命令:

composer require marbie77/emailcountdown

包简介

Email Countdown class to generate GIF

README 文档

README

Just some simple PHP classes to generate a countdown (60 seconds GIF animation) to be used as fake counter in an email

The image itself works with Outlook, but it shows only the first frame of the GIF animation.

Installation

Use Composer to install it

composer require marbie77/emailcountdown

Usage

Create the class, use the options and output the GIF.

$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();

Examples

To check the examples, first install dependencies with composer install

Then navigate to example.php or example_wallpoet.php

Changelog

2.1.1

  • adding PR for removing deprecation messages from @simoheinonen

2.1.0

  • adding PR for setting max frames from @simoheinonen

2.0.1

  • adding new function to customize shown text and position
  • adding font Wallpoet-Regular to show additional example (example_wallpoet.php)

2.0.0

  • added PHPDocs and new coding standards i.e.
    • removed all underscores from properties and methods
    • using camelCase now
  • includes PR from @igumenov - thank you!

1.0.0

  • Initial version

统计信息

  • 总下载量: 31.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-28