October 22, 2012

How to Create an ics Import File Using PHP

In this video, you’ll learn how to create an .ics import file using PHP. This allows you to dynamically generate the .ics file based on stored event data. Users can then download the file and import the event information in their calendar of choice… Outlook, Thunderbird(Lightning), Apple Calendar, etc.

8 Comments on “How to Create an ics Import File Using PHP

August 8, 2013 at 7:27 pm

This is just what I needed! Changed the quote just a bit to make the calendar date 30 days in the future from when ever they opened it. Just wondering…do you have any idea how to add a reminder alert into the ics file?

December 2, 2013 at 4:24 pm

I wrote that for Laravel 4, but maybe can be useful.

December 3, 2013 at 4:42 pm

Thanks, this just helped me a ton! Surprising how little documentation there is out there on how to create an ICS, at least with PHP/Wordpress, so this was a huge help.

John Morris
December 3, 2013 at 5:01 pm

Yes! Very little. Took me forever to run all this down. Glad it was helpful.

February 1, 2014 at 10:30 am

Perfect and very useful tutorial…thx!…

February 6, 2014 at 3:48 pm

Great tutorial! I used this in combo with a custom post type in WordPress and it works perfect!

March 24, 2014 at 12:45 pm

Thanks, your code saved me a lot of searching. Just thought Id add this to let you know its still relevant and useful.
I used bits of your code to solve a number of problems I ran into getting a silly little .ics file to work and as a php novice it was good to have the video to watch as well.

John Morris
March 24, 2014 at 1:01 pm

Thanks! Glad it was useful!


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.