Creating iCalendar (ics) files with PHP
This post was originally written several years ago and included my own attempt at building a very simple ical creator in PHP. I’ve been meaning to update this blog with some better code and information for quite some time. I finally found what I consider to be a very good class for creating iCalendar files using PHP: iCalcreator. Along with creating iCalendar files, iCalcreator can also parse and merge iCalendar files, and spit out a modified version. There are lots of examples available for download on their site, as well as supporting utilities.
The iCalcreator documentation is excellent. The examples are easy to follow, and they clearly document how to use their class. Unfortunately, the iCalendar specification is complicated enough that you’ll still need to read rfc2445 to really take advantage of all of the options available to you. Some good iCalendar reference sites include:
Since I haven’t actually built anything using iCalcreator yet (other than some quick test scripts earlier today) I can’t really answer any questions about its usage. The good news is they have a forum on sourceforge for questions. I’d love to hear about your experiences using iCalcreator, so feel free to leave your comments below.
While it might be ‘excellent’, their sample doesn’t work.
Your blog is so informative
I love your article! Thank You. roulette software
thanks wwww.suatsezgin.com http://www.suatsezgin.com
I am the author of an iCalendar library written for PHP5. It is in heavy development right now and is approaching its first stable release (v0.1.0). The most current version as of now is qCal-v0.0.2 and v0.0.3 will be released on January 28th (there is a new release every other Thursday).
qCal Home Page
qCal Related Blog Posts
I am also working on the documentation for the library, which I intend to also be the #1 reference for people trying to learn about the iCalendar specification.
qCal Documentation