Download the PHP package renfordt/icstorm without Composer
On this page you can find all versions of the php package renfordt/icstorm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download renfordt/icstorm
More information about renfordt/icstorm
Files in renfordt/icstorm
Package icstorm
Short Description A PHP package for generating ICS files.
License MIT
Informations about the package icstorm
ICStorm
A package for creating and importing iCalendar/ICS files with one or multiple events.
[](https://github.com/renfordt/ICStorm)
[](https://packagist.org/packages/renfordt/icstorm/)



[](https://codeclimate.com/github/renfordt/ICStorm/test_coverage)
[](https://codeclimate.com/github/renfordt/ICStorm/maintainability)
Installation
The recommended way to install this package is using Composer. Execute the following command. This will not only install the package but also add it to your project's composer.json file as a dependency.
Usage
Create Events
The PHP code below is used to create a new event.
The variables at the
beginning (title
, summary
, description
, startDate
, endDate
, classification
, transparency
, and location
)
represent different details of the event:
title
: The title of the event.summary
: A brief overview of the event.description
: Detailed information about the event.startDate
andendDate
: The start and end dates of the event and are mandatory.classification
: The visibility of the event, indicating whether it's private or public.transparency
: Indicates whether the time of the event is blocked or free.location
: Location of the event.
These details are collected together into an associative array using the compact
function. This array is then passed
as an argument to the Event::createEvent
function, which generates an instance of an event with these details.
Create an iCalendar
To create an iCalendar/ICS file you can use the following code.
First create a new Calendar instance and add all required Events to it. After that you can generate the ICS string or the file with the functions.