j4wx / ics
There is no license information available for the latest version (1.0.0) of this package.
Calendar class allowing generation of .ics files
1.0.0
2019-01-20 01:10 UTC
This package is auto-updated.
Last update: 2024-03-20 12:25:57 UTC
README
Calendar and Event generator in the ICAL format.
Can be output as a string or downloaded using the download function.
composer require j4wx/ics
Example
use J4Wx\ICS\Calendar; use J4Wx\ICS\Event; $cal = new Calendar(); $event = new Event(); $event->setStart(new DateTime("now")); $event->setEnd(new DateTime("tomorrow")); $event->setSummary("Big Party"); $cal->addEvent($event); $event = new Event(); $event->setStart(new DateTime("yesterday")); $event->setEnd(new DateTime("today")); $event->setSummary("Another Party"); $event->setURL("https://www.github.com/J4Wx"); $cal->addEvent($event); $cal->download();
I might write some proper documentation eventually...