PHP code example of traubisoda / icalendar
1. Go to this page and download the library: Download traubisoda/icalendar 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/ */
traubisoda / icalendar example snippets
Calendar\ICalendar;
...
...
...
try {
// New calendar instance and setting values
$calendar = (new ICalendar())
->setOrganizer('[email protected]')
->setStartDate(new DateTime(...))
->setEndDate(new DateTime(...))
->addAttendee('[email protected]');
// Get iCalendar
echo $calendar->getCalendar();
}
catch(\Exception $e) {
}