PHP code example of relaxsd / php-icalendar
1. Go to this page and download the library: Download relaxsd/php-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/ */
relaxsd / php-icalendar example snippets
$event = new Event('[email protected] ')
->setDateTimeStamp('1997-09-01 13:00 UTC')
->setDateTimeStart('1997-09-03 16:30 UTC')
->setDateTimeEnd('1997-09-03 19:00 UTC')
->setSummary('Annual Employee Review')
->setClassification(Classification::CLASSIFICATION_PRIVATE)
->setCategories(['BUSINESS', 'HUMAN RESOURCES']);
$audioAlarm = new AudioAlarm()
->setTrigger('1997-03-17 13:30 UTC')
->setRepeatCount(4)
->setAttachment(UriAttachment::forAudioUrl('ftp://host.com/pub/sounds/bell-01.aud'))
->setDuration(Duration::forMinutes(15));
$audioAlarm = new AudioAlarm()
->setTrigger('1997-03-17 13:30 UTC')
->setRepeatCount(4)
->setAttachment(UriAttachment::forAudioUrl('ftp://host.com/pub/sounds/bell-01.aud'))
->setDuration(Duration::forMinutes(15));
$todo = new Todo()
->setUniqueIdentifier('[email protected] ')
->setDateTimeStamp('1997-09-01 13:00 UTC')
->setDateTimeStart('1997-04-15 13:30 UTC')
->setDateTimeDue('1997-04-16 04:59:59 UTC')
->setSummary('1996 Income Tax Preparation')
->setClassification(Classification::CLASSIFICATION_CONFIDENTIAL)
->setCategories(['FAMILY', 'FINANCE'])
->setPriority(1)
->setStatus(Status::STATUS_NEEDS_ACTION);