makinuk / icalendar
iCalendar is a computer file format which allows Internet users to send meeting requests and tasks to other Internet users
Installs: 34 747
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.4
Requires (Dev)
This package is auto-updated.
Last update: 2025-06-26 13:58:13 UTC
README
iCalendar is a computer file format that allows Internet users to send meeting requests and tasks to other Internet users
This project follows RFC 5545
Composer
composer require makinuk/icalendar>=1.0
Example Usage
require_once "../vendor/autoload.php"; $ical = new makinuk\ICalendar\ICalendar(); $event = new makinuk\ICalendar\ICalEvent(); $event->setUId("11223344") ->setStartDate(strtotime("+24 hours")) ->setEndDate(strtotime("+25 hours")) ->setSummary("Summary is here") ->setDescription("Description area is here") ->setLocation("Istanbul") ->setOrganizer(new makinuk\ICalendar\ICalPerson("Mustafa AKIN", "user@domain.com")) ->setAlarm(new makinuk\ICalendar\ICalAlarm(0, 1, 10, 0)); $ical->addEvent($event); //$ical->getCalendarText(); //$ical->show(); $ical->saveToFile(dirname(__FILE__).DIRECTORY_SEPARATOR."simpleEventAdd.ics");