jefflundberg/fastical

A fast PHP ical parser for vevents, based on msquare/Fastical

dev-master 2016-02-24 16:38 UTC

This package is auto-updated.

Last update: 2022-05-11 09:00:12 UTC


README

A fast PHP ical parser for vevents.

Requirements

  • PHP > 5.5
  • Composer

Setup

In composer.json:

{
    "require": {
        "jefflundberg/fastical": "dev-master"
    }
}

Usage

Include Composer’s autoloader

require 'vendor/autoload.php';

Get events from the next 7 days:

$f = new Fastical('events.ics');
print_r($f->getEvents(time(), time() + 7 * 24 * 60 * 60));