PHP code example of marijnvdwerf / teletekst
1. Go to this page and download the library: Download marijnvdwerf/teletekst 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/ */
marijnvdwerf / teletekst example snippets
$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);