1. Go to this page and download the library: Download indpurvesh/calendar-links 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/ */
php
use Spatie\CalendarLinks\Link;
$from = DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 09:00');
$to = DateTime::createFromFormat('Y-m-d H:i', '2018-02-01 18:00');
$link = Link::create('Sebastian\'s birthday', $from, $to)
->description('Cookies & cocktails!')
->address('Samberstraat 69D, 2060 Antwerpen');
// Generate a link to create an event on Google calendar
echo $link->google();
// Generate a link to create an event on Yahoo calendar
echo $link->yahoo();
// Generate a data uri for an ics file (for iCal & Outlook)
echo $link->ics();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.