There is no license information available for the latest version (v1.0.0) of this package.

Build calendar (.ics) files.

v1.0.0 2018-05-13 15:56 UTC

This package is not auto-updated.

Last update: 2022-06-25 07:26:01 UTC


Build Status Code Climate

Build calendar (.ics) file in php

This library allows quickly generating ics files in php. Outputs should be compatible with the standard https://tools.ietf.org/html/rfc5545. But currently, not every single bit of the standard is implemented.


You can load this library in your project using composer:

   "require": {
       "jihoun/calendar": "dev-master"

Then in your code, do the following

$event = new \Jihoun\Calendar\Component\Event();
    ->setDateTimeStart(new Property\DateTimeStart(new \DateTime()))
    ->setDateTimeEnd(new Property\DateTimeEnd(new \DateTime()))
    ->setDescription(new Property\Description('Very very lengthy description'))
    ->setLocation(new Property\Location('in the office'))
    ->setOrganizer(new Property\Organizer('john.doe@gmail.com'))
    ->setSummary(new Property\Summary('new test event'));
$cal = new \Jihoun\Calendar\Calendar();
file_put_contents('cal.ics', $cal->toString());

Contributions and feedbacks

Feel free to make me any feedback and/or contribution.