PHPackages                             seebaermichi/monthly-calendar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. seebaermichi/monthly-calendar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

seebaermichi/monthly-calendar
=============================

A package which provides a monthly calendar with days and events depending on given months and events.

1.3.0(3y ago)610[1 issues](https://github.com/seebaermichi/monthly-calendar/issues)[2 PRs](https://github.com/seebaermichi/monthly-calendar/pulls)MITPHPPHP ^8.0

Since Nov 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/seebaermichi/monthly-calendar)[ Packagist](https://packagist.org/packages/seebaermichi/monthly-calendar)[ Docs](https://github.com/seebaermichi/monthly-calendar)[ GitHub Sponsors](https://github.com/seebaermichi)[ RSS](/packages/seebaermichi-monthly-calendar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (9)Used By (0)

A package which provides a monthly calendar with days and events depending on given months and events.
======================================================================================================

[](#a-package-which-provides-a-monthly-calendar-with-days-and-events-depending-on-given-months-and-events)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c66aaf4480becbdbbdcac47144b02a74590e3058f546b070b39d409c82111684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736565626165726d696368692f6d6f6e74686c792d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/seebaermichi/monthly-calendar)[![Tests](https://github.com/seebaermichi/monthly-calendar/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/seebaermichi/monthly-calendar/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/9fa548146d6b69e6e25c3dec90c637d8785a14832835388096d743c01600c55b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736565626165726d696368692f6d6f6e74686c792d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/seebaermichi/monthly-calendar)

This package returns a simple array with months, weeks and events depending on the months and events you provide.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require seebaermichi/monthly-calendar
```

Usage
-----

[](#usage)

```
// Will return an array with the given months and their weeks and days
// weeks will start with Monday
$monthlyCalendar = new Seebaermichi\MonthlyCalendar(['December 2021', 'January 2022']);
$calendar = $monthlyCalendar->getCalendar();

// Will return an array with the given months and their weeks and days
// weeks will start with Sunday
$monthlyCalendar = new Seebaermichi\MonthlyCalendar(['February 1989', 'March 1989'], 'Sun');
$calendar = $monthlyCalendar->getCalendar();

// Provide simple array of events and event label to get related days labeled
// First of December will have an event attribute 'birthday'
$monthlyCalendar = new Seebaermichi\MonthlyCalendar(['December 2021']);
$calendar = $monthlyCalendar->getCalendar(['2021-12-01'], 'birthday');

// Provide array of events with detailed data to get related days labeled
// 6th of March 2023 will have an events array including the given data
$monthlyCalendar = new Seebaermichi\MonthlyCalendar(['December 2021']);
$givenEvents = [
    [
        'datetime' => '2023-06-03 10:00',
        'label' => 'meeting',
    ],
    [
        'datetime' => '2023-06-03 13:00',
        'label' => 'lunch',
    ],
];
$calendar = $monthlyCalendar->getCalendar($givenEvents, '', 'Y-m-d H:i');

// Get only weekdays array with optional $startWith day
$weekdays = Seebaermichi\MonthlyCalendar::weekdays(); // ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
$weekdays = Seebaermichi\MonthlyCalendar::weekdays('Sun'); // ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Michael Becker](https://github.com/seebaermichi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Recently: every ~115 days

Total

6

Last Release

1162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf98b988250ce56284e12650bad233f5db9747adb950616d2ed29826745af69e?d=identicon)[seebaermichi](/maintainers/seebaermichi)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![bermael](https://avatars.githubusercontent.com/u/18620677?v=4)](https://github.com/bermael "bermael (11 commits)")[![seebaermichi](https://avatars.githubusercontent.com/u/2083999?v=4)](https://github.com/seebaermichi "seebaermichi (7 commits)")

---

Tags

calendarphpseebaermichimonthly-calendar

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/seebaermichi-monthly-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/seebaermichi-monthly-calendar/health.svg)](https://phpackages.com/packages/seebaermichi-monthly-calendar)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
