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

Maintainers

Details

github.com/J4Wx/ICS

Source

Issues

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/j4wx/ics

1.0.0 2019-01-20 01:10 UTC

This package is auto-updated.

Last update: 2025-10-20 15:55:51 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...