aingelc12ell/simplecalendar

A light, easy to use calendar rendering library, forked from donatj/simplecalendar

v0.1.1 2023-09-26 10:32 UTC

This package is auto-updated.

Last update: 2024-08-28 06:19:26 UTC


README

A very simple, easy to use PHP calendar rendering class.

Credits

This is forked for other use without compromising the core functionalities from (https://github.com/donatj/SimpleCalendar).

Installing

Install the latest version with:

composer require 'aingelc12ell/simplecalendar'

Examples

<?php

require '../vendor/autoload.php';

echo '<link rel="stylesheet" href="../src/css/SimpleCalendar.css" />';

$calendar = new ACCESS\SimpleCalendar('June 2010');

echo $calendar->render();
<?php
require '../vendor/autoload.php';

echo '<link rel="stylesheet" href="../src/css/SimpleCalendar.css" />';

$calendar = new ACCESS\SimpleCalendar();

$calendar->setStartOfWeek('Sunday');
$calendar->addDailyHtml('Sample Event', 'today', 'tomorrow');

$calendar->setWeekDayNames([ 'Sun', 'Mon', 'Tu', 'W', 'Th', 'F', 'Sa' ]);
$calendar->setStartOfWeek('Monday');

echo $calendar->render();