PHP code example of programster / ical

1. Go to this page and download the library: Download programster/ical 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/ */

    

programster / ical example snippets




nt = new Programster\iCal\Event(
    "Calendar Name",
    "Event Name",
    Programster\iCal\EventTimeConfig::createTimespan(time(), time() + 3600),
    "My App or Service Name",
);

print($event); // prints out the ical text.