PHPackages                             aharen/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. aharen/calendar

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

aharen/calendar
===============

Calendar generator with optional events for Laravel

v1.0.2(9y ago)254MITPHPPHP &gt;=5.4.0

Since Aug 24Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Calendar
========

[](#calendar)

Calendar generator with optional events for Laravel

### Installation

[](#installation)

`composer require aharen/calendar`

### Configuration

[](#configuration)

Add `aharen\Clendar\CalendarServiceProvider::class` to the end of `providers` in `config/app.php`

### Usage

[](#usage)

```
$calendar = new Calendar();
$calendar->month('2016-08')
    ->generate()
    ->withEvents(false);

```

The method `withEvents()` when empty or set true will return events with 30 minute interval time array.

#### Adding Events to Calendar

[](#adding-events-to-calendar)

There are two methods for adding Events to the calendar.

1. `addEvent($time, $event)`

`$time` - formatted as `H:i` or accepts the string `all_day` eg: `$calendar->addEvent('04:30', 'Early morning walk');``$event` - accepts a string as your event detail

```
eg:  `$calendar->days['05-08']->addEvent('08:00', 'that cool project goes live');`

```

2. `addAllDay($event)`

`$event` - accepts a string as your event detail

```
eg: `$calendar->days['05-08']->addAllDay('Sleep all day');`

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3570d ago

### Community

Maintainers

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

---

Top Contributors

[![aharen](https://avatars.githubusercontent.com/u/46440?v=4)](https://github.com/aharen "aharen (9 commits)")

---

Tags

laraveleventscalendar

### Embed Badge

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

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

###  Alternatives

[laraveljutsu/zap

A flexible, performant, and developer-friendly schedule management system for Laravel

1.5k97.9k1](/packages/laraveljutsu-zap)[classiebit/eventmie

Run your own Events business with Eventmie Pro. Use it as event ticket selling website or event management platform on your own domain.

1882.0k](/packages/classiebit-eventmie)[skecskes/calendar

Laravel 5 Flexible Calendar

114.3k](/packages/skecskes-calendar)

PHPackages © 2026

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