final |
|---|
Entry point of the iCalendar (RFC 5545) API. $calendar = ICal::parse($ics); foreach ($calendar->events() as $event) { foreach ($event->occurrencesBetween($from, $to) as $occurrence) { ... } } The permissive parser is used; see ICal::parser() for strict parsing, limits and warnings.
| Methods | ||
|---|---|---|
public
static
|
parse(string $content): Calendar
|
# |
public
static
|
parseFile(string $file): Calendar
|
# |
public
static
|
stream(string $file): Generator<int, Item>
|
# |
public
static
|
parser(): Parser
|
# |