'how to import .ics file and store data in database in PHP? [closed]

  1. I have one ICS file that I want to import.
  2. and Store its data in my database in PHP.

ICS file Content===>

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN
METHOD:REQUEST

BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:20000326T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:20001029T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE

BEGIN:VEVENT
CLASS:PUBLIC
UID: 59115b727dd92
DTSTAMP:20170509T080226Z
SUMMARY:Radwechsel
LOCATION:HNG_FI_Germering,Filiale Germering - 16,Augsburger Str. 2,82110,Germering,DE
PRIORITY:5
TRANSP:OPAQUE
ORGANIZER;CN=chaudhary:MAILTO:[email protected]
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:MAILTO:[email protected]

DTSTART;TZID="Europe/Berlin":20170512T093000
DTEND;TZID="Europe/Berlin":20170512T112100

BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:REMINDER
TRIGGER:-PT900S
END:VALARM

END:VEVENT
END:VCALENDAR


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source