A very simple, easy to use PHP calendar rendering class.
- php: >= 8.0
Install the latest version with:
composer require 'marcandreappel/simple-calendar'
<?php
require '../vendor/autoload.php';
$calendar = new MarcAndreAppel\SimpleCalendar\SimpleCalendar('June 2023');
echo $calendar->render();
<?php
require '../vendor/autoload.php';
$calendar = 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();