Php – Create iCal Calendar event with PHP

calendaricalendarPHP

I am trying to create a PHP script that will create a calendar event in iCal. I have searched here and in Google and only come up with results that talk about importing iCal events to a PHP-made calendar. This is the opposite of what I need.

I don't have any code to include because I have no starting point. Any suggestions on where I should start?

Best Answer

A few years ago I had started writing an iCalendar library. It's in pretty alpha stage (and I 've practically given up on it), at the time there was no PHP 5, and there isn't a lot of functionality in there, but:

  • I do have a lot of code that goes into modeling the iCalendar RFC (you might want to look into it)
  • It does have the capability to programmatically create events and spit out iCal format

Hope it helps: