Endroid Calendar

2.0.7 2020-01-15 13:31 UTC


By endroid

Latest Stable Version Build Status Total Downloads Total Downloads License

This library helps reading and writing calendars from and to different formats. To this end each reader converts the source to a generic calendar representation which can in turn be written to any available calendar format using one of the available writers.

Note: at this moment only read from Google Calendar is available.


Use Composer to install the library.

$ composer require endroid/calendar



use Endroid\Calendar\Reader\IcalReader;

$url = '...';

$reader = new IcalReader();
$calendar = $reader->readFromUrl($url);

$dateStart = new \DateTime('2016-01-01');
$dateEnd = new \DateTime('2016-12-31');

$events = $calendar->getEvents($dateStart, $dateEnd);


Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.


This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.