PHP code example of marcandreappel / simple-calendar
1. Go to this page and download the library: Download marcandreappel/simple-calendar 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/ */
marcandreappel / simple-calendar example snippets
endar = new MarcAndreAppel\SimpleCalendar\SimpleCalendar('June 2023');
echo $calendar->render();
endar = new MarcAndreAppel\SimpleCalendar\SimpleCalendar();
$calendar->addEvent('Sample Event', 'today', 'tomorrow');
$calendar->setWeekdays(['Sun', 'Mon', 'Tu', 'W', 'Th', 'F', 'Sa']);
$calendar->setWeekOffset('mon');
echo $calendar->render();