1. Go to this page and download the library: Download intelogie/vcalendar 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/ */
// Filename for download stream
$event = new Davaxi\VCalendar($fileName = 'invite');
// Set process info
$VCalendar->setProcess($processOwner, $processName, $processVersion, $processLang)
// Set method (REQUEST / PUBLISH)
$VCalendar->setMethod($method);
// Set event calendar name
$VCalendar->setCalendarName($calendarName);
// Set event timezone
$VCalendar->setTimeZone($timeZone);
// Set event start datetime
$VCalendar->setStartDateTime($startDateTime);
// Set event end datetime
$VCalendar->setEndDateTime($endDateTime);
// Set event status (TENTATIVE / CONFIRMED / CANCELED)
$VCalendar->setStatus($status);
// Set event title
$VCalendar->setTitle($title);
// Set event description
$VCalendar->setDescription($description);
// Set organize info
$VCalendar->setOrganizer($organizerName, $organizerEmail);
// Set event class (PUBLIC / PRIVATE / CONFIDENTIAL)
$VCalendar->setClass($class);
// Set event created datetime
$VCalendar->setCreatedDateTime($createdDateTime);
// Set event location
$VCalendar->setLocation($locationString, $locationLat, $locationLng);
// Set event URL
$VCalendar->setUrl($url);
// Set sequence
$VCalendar->setSequence($sequence);
// Set event last updated datetime
$VCalendar->setLastUpdatedDateTime($lastUpdatedDateTime);
// Set event categories
$VCalendar->setCategories($categories);
// Set event UID (for updates)
$VCalendar->setUID($UID);
// Add attendee (types: CHAIR / REQ-PARTICIPANT / OPT-PARTICIPANT / NON-PARTICIPANT)
$VCalendar->addAttendee($name, $type, $email, $rsvp);
// Stream file with header
$VCalendar->stream();
// or get content
$content = $VCalendar->getContent();
$PHPMailer = new PHPMailer();
$VCalendar = new Davaxi\VCalendar();
// [...] Set VCalendar
// [...] Configure PHPMailer
$PHPMailer->addStringAttachment(
$VCalendar->getContent(),
$VCalendar->getFilename(),
'base64',
$VCalendar->getContentType(),
'attachment'
);
$PHPMailer->Send();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.