A simple and fast iCal parser.
 
 
 
Go to file
Morten Fangel 18275f0d87 Merge pull request #6 from ecentinela/master
BYYEARNO doesn't exist in RFC 2445. I suppose that BYWEEKNO is the right specification.
2012-01-18 00:28:20 -08:00
blocks RDATE support 2010-10-31 20:28:05 +01:00
demo Merged tpruvot's fork PHP-iCal (http://github.com/tpruvot/PHP-iCal). Great work tpruvot! 2010-11-01 19:56:01 +01:00
helpers Merge pull request #6 from ecentinela/master 2012-01-18 00:28:20 -08:00
tests Merged tpruvot's fork PHP-iCal (http://github.com/tpruvot/PHP-iCal). Great work tpruvot! 2010-11-01 19:56:01 +01:00
.gitignore ignore built file 2010-10-29 06:17:22 +02:00
README Merged tpruvot's fork PHP-iCal (http://github.com/tpruvot/PHP-iCal). Great work tpruvot! 2010-11-01 19:56:01 +01:00
SG_iCal.php Merged tpruvot's fork PHP-iCal (http://github.com/tpruvot/PHP-iCal). Great work tpruvot! 2010-11-01 19:56:01 +01: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/fangel/SG-iCalendar
With massive help from http://github.com/tpruvot/PHP-iCal
and http://github.com/xonev/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 :
-------------------------------------------------------------------------------

current (31 oct 2010)
 + ical RDATE support (added dates in a range)
 + RDATE and EXDATE arrays support

0.7.0 (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 (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

-------------------------------------------------------------------------------
TODO :
-------------------------------------------------------------------------------

These iCal keywords are not supported for the moment :
 - RECURRENCE-ID : to move one event from a recurrence
 - EXRULE : to exclude multiple days by a complex rule

Also, multiple RRULE could be specified for an event,
but that is not the case for most calendar applications

-------------------------------------------------------------------------------
To get more information about ical format and rules :
see http://www.ietf.org/rfc/rfc2445.txt