PHPackages                             maarheeze/calendar-date-laravel - 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. maarheeze/calendar-date-laravel

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

maarheeze/calendar-date-laravel
===============================

laravel integration for a timezone-agnostic calendar date value object

1.1.0(3mo ago)04MITPHPPHP ^8.2

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/maarheeze/calendar-date-laravel)[ Packagist](https://packagist.org/packages/maarheeze/calendar-date-laravel)[ RSS](/packages/maarheeze-calendar-date-laravel/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

maarheeze/calendar-date-laravel
===============================

[](#maarheezecalendar-date-laravel)

Laravel integration for [maarheeze/calendar-date](https://github.com/maarheeze/calendar-date).

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

[](#requirements)

- PHP 8.2+
- Laravel 8+

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

[](#installation)

```
composer require maarheeze/calendar-date-laravel
```

Usage
-----

[](#usage)

### Eloquent cast

[](#eloquent-cast)

```
use Maarheeze\CalendarDate\Casts\CalendarDateCast;

class Article extends Model
{
    protected $casts = [
        'publication_date' => CalendarDateCast::class,
    ];
}
```

The cast handles `null`, `string`, and `DateTimeInterface` values from the database, and stores as `Y-m-d`.

### Blade

[](#blade)

Since `CalendarDate` implements `__toString()`, it renders directly in Blade:

```
{{ $article->publication_date }} // results in 2000-01-01
{{ $article->publication_date->format('d-m-Y') }} // results in 01-01-2000
```

### Validation

[](#validation)

Use a custom constraint for validation in form requests:

```
use Maarheeze\CalendarDate\Rules\CalendarDateRule;

public function rules(): array
{
    return [
        'publication_date' => ['required', new CalendarDateRule(max: 'today')],
    ];
}
```

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance84

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/734972e64c460b2142b0b04b4f40aa30077c5dd1915411b486ec72efcae3c3bf?d=identicon)[wietsewarendorff](/maintainers/wietsewarendorff)

---

Top Contributors

[![wietsewarendorff](https://avatars.githubusercontent.com/u/313525?v=4)](https://github.com/wietsewarendorff "wietsewarendorff (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/maarheeze-calendar-date-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/maarheeze-calendar-date-laravel/health.svg)](https://phpackages.com/packages/maarheeze-calendar-date-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58122.8k](/packages/laracraft-tech-laravel-useful-additions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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