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: 2024-04-11 13:43:22 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));