Download the PHP package codephix/ical without Composer
On this page you can find all versions of the php package codephix/ical. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codephix/ical
More information about codephix/ical
Files in codephix/ical
Package ical
Short Description The eluceo/iCal package offers an abstraction layer for creating iCalendars. You can easily create iCal files by using PHP objects instead of typing your *.ics file by hand. The output will follow RFC 5545 as best as possible.
License MIT
Homepage https://github.com/markuspoerschke/iCal
Informations about the package ical
📅 eluceo — iCal 2
This package offers an abstraction layer for creating iCalendars files.
By using this PHP package, you can create *.ics
files without the knowledge of the underling format.
The output itself will follow RFC 5545 as good as possible.
Navigate through the project
- 📖 read the documentation
- 🐛 report a bug or suggest a feature
- 🙋 raise a question
- 💬 start a discussion
Installation
You can install this package by using Composer, running the following command:
Version / Upgrade
The initial version was released back in 2012.
The version 2 of this package is a complete rewrite of the package and is not compatible to older version.
Please see the upgrade guide if you want to migrate from version 0.*
to 2.*
.
If you just start using this package, you should install version 2.
Version | PHP Version |
---|---|
2.* | 7.4 - 8.2 |
0.16.* | 7.0 - 8.2 |
0.11.* | 5.3.0 - 7.4 |
Documentation
Visit ical.poerschke.nrw for complete documentation.
Usage
The classes within this package are grouped into two namespaces:
- The
Domain
contains the information about the events. - The
Presentation
contains the transformation fromDomain
into a*.ics
file.
To create a calendar, the first step will be to create the corresponding domain objects. Then these objects can be transformed into a iCalendar PHP representation, which can be cast to string.
Empty event
In this very basic example, that renders an empty event. You will learn how to create an event domain object, how to add it to a calendar and how to transform it to a iCalendar component.
1. Create an event domain entity
2. Create a calendar domain entity
3. Transform calendar domain object into a presentation object
4. a) Save to file
4. b) Send via HTTP
Full example
The following example will create a single day event with a summary and a description. More examples can be found in the examples/ folder.
License
This package is released under the MIT license.
All versions of ical with dependencies
ext-mbstring Version *
symfony/deprecation-contracts Version ^2.1 || ^3.0