OzzyCzech/icalparser


Just simple icalendar parser

https://omdesign.cz

License: BSD-3-Clause

Language: PHP

Keywords: ical, ical-parser, icalendar, php


PHP iCal Parser

GitHub Workflow Status Latest Stable Version Total Downloads Latest Unstable Version License

Internet Calendaring Parser rfc2445 or iCal parser is simple PHP 7.1+ class for parsing format into array.

How to install

composer require om/icalparser

Usage

<?php
use om\IcalParser;
require_once '../vendor/autoload.php';

$cal = new IcalParser();
$results = $cal->parseFile(
	'https://www.google.com/calendar/ical/cs.czech%23holiday%40group.v.calendar.google.com/public/basic.ics'
);

foreach ($cal->getSortedEvents() as $r) {
	echo sprintf('	<li>%s - %s</li>' . PHP_EOL, $r['DTSTART']->format('j.n.Y'), $r['SUMMARY']);
}

Requirements

  • PHP 7.1+

Run tests

iCal parser using Nette Tester. The tests can be invoked via composer.

composer update
composer test

TODO

Project Statistics

Sourcerank 9
Repository Size 163 KB
Stars 49
Forks 22
Watchers 7
Open issues 4
Dependencies 2
Contributors 11
Tags 17
Created
Last updated
Last pushed

Top Contributors See all

Roman Ožana PC Drew Rotzbua Clement Wong Andrew Nagy Aaron Parecki Piers Warmers Glendon Solsberry James Finstrom cyberbeat Lokonli

Packages Referencing this Repo

om/icalparser
Simple ical parser
Latest release v2.0.1 - Updated - 49 stars

Recent Tags See all

v0.2.8 March 16, 2020
v0.2.7 January 21, 2020
v0.2.6 November 06, 2019
v0.2.5 November 06, 2019
v0.2.4 November 06, 2019
v0.2.3 April 19, 2018
v0.2.2 December 11, 2017
v0.2.1 March 13, 2017
v2.0.1 March 13, 2017
v0.2.0 July 04, 2016
v0.1.1 July 07, 2015
v0.1.0 June 27, 2015
v0.0.5 November 27, 2014
v0.0.4 March 24, 2014
v0.0.3 March 18, 2014

Interesting Forks See all

drewpc/icalparser
This is simple icalendar parser
PHP - BSD-3-Clause - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2020-03-16 08:00:44 UTC

Login to resync this repository