Skip to content

Instantly share code, notes, and snippets.

View pixelcrash's full-sized avatar
💭
European

Georg Kettele pixelcrash

💭
European
View GitHub Profile
@pixelcrash
pixelcrash / PHPtoICS.php
Created December 17, 2016 18:28 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?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)
//