| 
<?phprequire_once 'autoloader.php';
 
 use SKien\GCalendar\GCalAddEventLink;
 
 $oLink = new GCalAddEventLink();
 
 $oLink->setSubject('Zoom meeting at christmas day');
 $oLink->setStart('2020-12-24 13:00');
 $oLink->setDuration('PT1H'); // 1 hour
 $oLink->setTimezone('America/New_York');
 $oLink->setDetails(
 'We just want to meet us via zoom cause we are not allowed to ' . PHP_EOL .
 'meet us at the christmas market :-(' . PHP_EOL . PHP_EOL .
 'And this is just a check whether the usual problems caused by' . PHP_EOL .
 'German umlauts are correctly intercepted: ä, ö, ü, Ä, Ö, Ü, ß ...'
 );
 $oLink->setLocation('Homeoffice');
 $oLink->addGuest('[email protected]');
 $oLink->addGuest('[email protected]');
 
 echo '<h1>Example to add event to google calendar</h1>' . PHP_EOL;
 echo '<a target="_blank" href="' . $oLink->getHREF() . '">Add to google calendar</a>' . PHP_EOL;
 
 |