SimpleCalendar is a very simple PHP calendar class written to be easy to use and flexible.

It includes basic event logic and is made to be modified to your particular needs.

Sample Usage

<?php
require_once('SimpleCalendar.php');
$calendar = new donatj\SimpleCalendar();

$calendar->setStartOfWeek('Sunday');

$calendar->addDailyHtml( 'Sample Event', 'today', 'tomorrow' );
$calendar->show(true);

Example Calendar

Click here for the Github repository.

Recent Activity

Nov. 24, 2025

GitHub (web-flow)
Merge pull request #32 from donatj/donatj-patch-2

Add PHP version 8.5 to CI workflow

Add PHP version 8.5 to CI workflow

Nov. 21, 2025
Bump actions/checkout from 5 to 6 (#31)

Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Aug. 12, 2025
Bump actions/checkout from 4 to 5 (#30)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Nov. 24, 2024
Merge pull request #29 from donatj/donatj-patch-2

Test in PHP 8.4

Test in PHP 8.4

Nov. 27, 2023
Merge pull request #26 from donatj/php-version/8-3--users-jdonat-projects-donatj-simplecalendar--github-workflows-ci-yml

Update PHP to 8.3

Jesse Donat (donatj)
Update PHP to 8.3

Nov. 2, 2023
Replace travis badge with GitHub Actions

GitHub (web-flow)
Merge pull request #25 from donatj/phpstan

Pretty major cleanup

Jesse Donat (donatj)
Use Makefile

Adds helpful Makefile

Update autoloader syntax

Use correctly compatible versions

Updates README

Minor fixup

Drop pre-7.2’s

Run fixer

Add phpcs and php-cs-fixer

Fixup

Add phpstan.neon

Cleans up composer.json some

Correct backwards annotation

Remove unnecessary if

Min PHP 7.2

Fix http url

Sep. 5, 2023
Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Jan. 11, 2023
Updates docs

GitHub (web-flow)
Merge pull request #22 from donatj/8_2

Test in PHP 8.2

Jesse Donat (donatj)
Resolve PHP 8.1+ deprecation notice

Build | Date | Message

v0.6.0
Download

Apr. 16, 2014

Simplified shrimp2ts work

v0.6.1
Download

Apr. 16, 2014

gitignore updates

v0.6.2
Download

Jun. 7, 2017

Merge branch 'keesiemeijer-master'

v0.7.0
Download

Jan. 11, 2023

Updates docs

v0.8.0
Download

Nov. 2, 2023

Replace travis badge with GitHub Actions