1. Go to this page and download the library: Download webcretaire/pig 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/ */
webcretaire / pig example snippets
$ics = new PIG\ICS('Europe/Paris'); // For example, or any timezone
$ics->addEvent(
'2018-10-06 20:15:00', // Start
'2018-10-07 02:00:00', // End
'Awesome party', // Title
'At my house', // Optionnal location
'Amazing party, with friends and all' // Optionnal description
)->addEvent( // You can chain theese calls if you want
new \DateTime('2018-10-07 15:00:42'), // Dates can be a \Datetime too
new \DateTime('2018-10-07 02:00:00'),
'House cleaning ...'
);
$ics->saveICS('path.ics');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.