Skip to content

Instantly share code, notes, and snippets.

@morganestes
morganestes / PHPtoICS.php
Created August 6, 2013 16:24 — forked from jakebellacera/ICS.php
Create a valid ICS file to save an event to your calendar.
<?php
// Variables used in this script:
// $summary - text title of the event
// $datestart - the starting date (in seconds since unix epoch)
// $dateend - the ending date (in seconds since unix epoch)
// $address - the event's address
// $uri - the URL of the event (add http://)
// $description - text description of the event
// $filename - the name of this file for saving (e.g. my-event-name.ics)
//