A simple and fast iCal parser.
 
 
 
Go to file
Tanguy Pruvot 8079db3ac3 add support for EXDATE arrays : EXDATE;VALUE=DATE:20100909,20100910 2010-10-31 17:19:19 +01:00
blocks add support for EXDATE arrays : EXDATE;VALUE=DATE:20100909,20100910 2010-10-31 17:19:19 +01:00
demo implement frequency cache, actually only set in some cases : count recurrence or using lastOccurrence() 2010-10-30 20:54:42 +02:00
helpers add support for EXDATE arrays : EXDATE;VALUE=DATE:20100909,20100910 2010-10-31 17:19:19 +01:00
tests spaces cleanup 2010-10-31 16:59:40 +01:00
.gitignore ignore built file 2010-10-29 06:17:22 +02:00
README updated README 2010-10-31 15:34:26 +01:00
SG_iCal.php v0.7.0 2010-10-30 22:47:53 +02:00
build.cmd variable for build output 2010-10-29 04:49:18 +02:00
build.sh Changed SG_iCalReader.php to SG_iCal.php in build.sh to accomodate the name change. 2009-10-21 17:56:14 -04:00

README

A simple and fast iCal parser.
http://github.com/tpruvot/PHP-iCal

About this fork (forked at v0.5.0 from http://github.com/fangel/SG-iCalendar)

A simple example :
 $ical = new SG_iCalReader( "./basic.ics" );
 //or
 $ical = new SG_iCalReader( "http://example.com/calendar.ics" );
 foreach( $ical->getEvents() As $event ) {
   // Do stuff with the event $event
 }

To check unit tests with phpunit, goto tests/ directory and :
 phpunit AllTests
 phpunit helpers/FreqTest

Changelog :

0.7.0-tpr (30 oct 2010)
 + ical EXDATE support (excluded dates in a range)
 + $event->isWholeDay()
 + getAllOccurrences() for repeated events
 + implemented a cache for repeated events

0.6.0-tpr (29 oct 2010)
 + Added demo based on fullcalendar
 + Added duration unit tests
 + Support of Recurrent events in query Between()
 * various fixes on actual (5) issues