marijnvdwerf/teletekst

There is no license information available for the latest version (0.1.0) of this package.

0.1.0 2015-07-15 16:35 UTC

README

Requirements

  • GD
  • dom
  • mbstring

Installation

composer require marijnvdwerf/teletekst

Usage

$data = file_get_contents('http://teletekst-data.nos.nl/json/702');
$data = json_decode($data);

$imageFormatter = new \marijnvdwerf\teletekst\ImageFormatter();
$gd = $imageFormatter->formatPage($data->content);
header('Content-Type: image/gif');
imagegif($gd);

An example for animated gifs can be found in animate.php