In the Works: iCalendar parser

I’ve got myself a new project. A iCalendar parser.

Right now it’s getting close to some initial testing. Which is why I need you!

Do you have any need for parsing iCalendar files/feeds? If you do, I’d like to bounce some ideas on how to create the API.
Also - I’m looking for testing-material. If you have a custom-written iCalendar feed send it my way so I can see if my parser blows up.

The code I do have can be found here: https://svn.sevengoslings.net/icalreader.

The code is released under a Creative Commons license. More specifically the Attribution-Share Alike 2.5 Denmark license.


Creative Commons License

Update: There is now a nice test page: the SG iCalReader Tryout.

-fangel

February 26th, 2008 | PHP, SG_iCalReader

6 comments

Comment by Mikkel

Link’s down? Says it’s “permanently moved”

March 21, 2008, 12:55 pm

Comment by fangel

Hi,

Sorry - I forgot the s on https. Works now.

-f

March 21, 2008, 1:05 pm

Comment by Mikkel

Nice. Tak. Virker nu.

March 23, 2008, 9:56 pm

Comment by Steve

It looks great man, but I’m tryign to use the ical link from a public google calendar, and it seems that a random event or two might come through, but most don’t. I don’t know if gCal gives a perfect iCal feed or not, but I thouhgt you might want to know. If you would liek the cal URL, send me a note.

I’d love to use this if it imports from the gCal!

April 2, 2008, 2:53 pm

Comment by Glyn Tomkins

I’m using Google calendar that i want to mashup in my wordpress site.

So was looking for some basic code that will parse the ical feed so I can then put it up in a widget or whatever. I was using the upcoming events plug-in but it doesn’t handle recurring events. Just tried your feed and it would appear that it doesn’t handle them either - any plans to include in your disribution?

April 13, 2008, 6:18 pm

Comment by fangel

Hi Glyn.

Yes. As a matter of fact I’m working on recurring events in these days. I’m getting there, but it’s not pretty nor fast.
I hope to have a version ready at the end of next week that will handle recurring events correctly - or at the very least the most common types of recurrence working.

-fangel

April 13, 2008, 11:16 pm

Post comment