PHP code example of skyraptor / laravel-fullcalendar
1. Go to this page and download the library: Download skyraptor/laravel-fullcalendar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
skyraptor / laravel-fullcalendar example snippets
$events = [];
$events[] = Calendar::event(
'Event One', //event title
false, //full day event?
'2015-02-11T0800', //start time (you can also use Carbon instead of DateTime)
'2015-02-12T0800', //end time (you can also use Carbon instead of DateTime)
0 //optionally, you can specify an event ID
);
$events[] = Calendar::event(
"Valentine's Day", //event title
true, //full day event?
new \DateTime('2015-02-14'), //start time (you can also use Carbon instead of DateTime)
new \DateTime('2015-02-14'), //end time (you can also use Carbon instead of DateTime)
'stringEventId' //optionally, you can specify an event ID
);
/* Add an array with addEvents */
Calendar::addEvents($events);
/* Set fullcalendar options */
Calendar::setOptions([
'plugins' => [
'dayGrid',
'bootstrapPlugin'
],
'themeSystem' => 'bootstrap',
]);
return view('page.events', [
...
'calendar' => Calendar::getFacadeRoot(),
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.