Hey guys,
I'm new here and I try to create calendar objects with PHP. Can someone give me an example how I can create an object?
I tried this example and the Output is correct. But how I can insert it into the database?
My code:
<?php
use Sabre\VObject;
include 'cal/vendor/autoload.php';
$vcalendar = new VObject\Component\VCalendar([
'VEVENT' => [
'SUMMARY' => 'My frist Event with sabredav and php',
'DTSTART' => new \DateTime('2016-05-26 10:00:00'),
'DTEND' => new \DateTime('2016-05-26 12:00:00')
]
]);
echo $vcalendar->serialize();
?>
The output is shown in the browser but now I don't know how I can insert it into the database and I can't find a tutorial e.g.
Thanks in advance for tips!
Dennis