php script to transform php into ics file
You can copy the file in a different folder
include("php2ics.php");
if you modify the folder then modify the adress in the "include".
$cal = new php2ics("your_organisation", "your_product");
"your_product" is not a required parameter
$cal->AddEvent("title", "description", "begin_time", "end_time", "location", "url");
"description", "location" and "url" are not required parameters
$cal->End();
$cal->DownloadICS("my_ics");
$cal->GetICS();
Input parameter | required parameter | type | description |
---|---|---|---|
title | x | string | title of the event |
description | string | description of the event | |
begin_date | x | int(timestamp) | beginning datetime of the event |
end_date | x | int(timestamp) | ending datetime of the event |
location | string | location of the event | |
url | string | url |
NB: if parameter is not required, then you can replace it with this argument : NULL. Example :
$cal->AddEvent("title", NULL, 1660568400, 1660572000, NULL, NULL);
Input parameter | required parameter | type | description |
---|---|---|---|
fichier | string | name of downloaded file |
NB: this parameter is not required, then you can replace it with this argument : NULL. By default, the name of the file will be : "calend" (calend.ics). Example :
$cal->DownloadICS("NULL");