PHPackages                             matheus-rosa/php-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. matheus-rosa/php-calendar

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

matheus-rosa/php-calendar
=========================

A library to easily handle date operations

1.0.0(5y ago)05PHPPHP &gt;=5CI failing

Since Jun 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/matheus-rosa/php-calendar)[ Packagist](https://packagist.org/packages/matheus-rosa/php-calendar)[ RSS](/packages/matheus-rosa-php-calendar/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

php-calendar
============

[](#php-calendar)

A small lightweight library to handle with calendar operations.

This library is an API to extend native PHP DateTime features.

Requirements
------------

[](#requirements)

PHP &gt;= 5.\*

Usage
-----

[](#usage)

```
use Calendar\App\Calendar;

// Returns a DateTime instance.
var_dump(Calendar::today());
var_dump(Calendar::tomorrow());
var_dump(Calendar::yesterday());

// Get the next day of week based in current date
var_dump(Calendar::now()->nextMonday());
var_dump(Calendar::now()->nextWednesday());

// Returns an array of DateTime objects
$onlyFridays = Calendar::interval('2020-01-01', '2020-03-31')
                        ->onlyFridays();

$onlyTuesdays = Calendar::interval('2020-01-01', '2020-03-31')
                        ->onlyTuesdays();

var_dump($onlyFridays, $onlyTuesdays);

// You can also compute the next/before days from now
Calendar::now()->nextDays(15);
Calendar::now()->beforeDays(15);

// Or specifying a base date
Calendar::fromDate('2020-04-25')->nextDays(15);
Calendar::fromDate('2020-04-25')->beforeDays(15);

// Or even set a specific timezone before handle its operations
Calendar::setTimezone('America/Sao_Paulo');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~0 days

Total

2

Last Release

2165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da9a9ac989f118042b1c4584533ae92acb5b6830c7ae94ee91c25a0a53698663?d=identicon)[matheus.alves.rosa](/maintainers/matheus.alves.rosa)

---

Top Contributors

[![matheus-rosa](https://avatars.githubusercontent.com/u/26602441?v=4)](https://github.com/matheus-rosa "matheus-rosa (14 commits)")

---

Tags

timedatecalendarrenewal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matheus-rosa-php-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/matheus-rosa-php-calendar/health.svg)](https://phpackages.com/packages/matheus-rosa-php-calendar)
```

###  Alternatives

[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[brick/date-time

Date and time library

3623.3M60](/packages/brick-date-time)[tplaner/when

Date/Calendar recursion library.

5261.0M5](/packages/tplaner-when)[kartik-v/yii2-date-range

An advanced Yii 2 date range picker input for based on bootstrap-daterangepicker plugin.

894.4M41](/packages/kartik-v-yii2-date-range)

PHPackages © 2026

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