PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Tomas Pavlatka   PTX PHP GD Analog Clock   ???   Download  
File: ???
Role: Example script
Content type: text/plain
Description: Example script
Class: PTX PHP GD Analog Clock
Render the time on analog clock as an image
Author: By
Last change: Update of index.php
Date: 1 month ago
Size: 198 bytes
 

Contents

Class file image Download
<?php

require_once './vendor/autoload.php';

try {
   
$clock = new PTX\Clock('09:55');
   
$clock->draw();
   
$clock->to_browser();
} catch(\
PTX\ClockException $e) {
    echo
$e->getMessage();
}