Description
ics) files, the format defined in RFC 5545 for sharing calendar information between systems. The package gives developers an object model, so you do not need to know the iCalendar specification in detail. Domain classes in the Eluceo\iCal\Domain namespace hold event information in plain PHP objects, such as an Event with a summary and an occurrence, and a Calendar that contains events. A presentation layer in the Eluceo\iCal\Presentation namespace converts those objects into the iCalendar format. The documentation's minimal example creates an event for a single day, wraps it in a calendar, converts it with a calendar factory, sets the HTTP headers for a text/calendar download, and echoes the result. The documentation sections cover installation, calendar components, events, time zones, custom properties and a maturity matrix.…
Highlights
- Generates .ics calendar files
- Follows RFC 5545
- Plain PHP domain objects
- Time zones and custom properties
- Example for an HTTP download
Ratings & Reviews
No ratings yet
Be the first to rate ICal.
People also visit
Add Event To Calendar Docs
Docs how to generate links to add events to online calendar services
ICal FAQ
What does eluceo/ical do?
It generates iCalendar (.ics) files, the calendar format defined in RFC 5545, from PHP objects.
Do I need to know the iCalendar spec?
No. The README says the package gives an abstraction so you can work with simple PHP objects.
How is an event created?
Create an Event, set its summary and occurrence, put it in a Calendar, convert it with the CalendarFactory, and output it.
How do I serve the file?
Set the Content-Type to text/calendar and send a Content-Disposition attachment header with a filename, as the example does.
Where do I get help?
The project has GitHub discussions for questions and an issue tracker for bugs.
What are the best ICal alternatives?
Popular alternatives to ICal include Ics, Add Event To Calendar Docs and renCal. See all ICal alternatives




