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

ActiveLibrary

donny5300/calendar
==================

Laravel 4 Flexible Calendar

28PHP

Since Apr 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Donny5300/calendar)[ Packagist](https://packagist.org/packages/donny5300/calendar)[ RSS](/packages/donny5300-calendar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\##EasyCalendar

[![Project Status](https://camo.githubusercontent.com/8458287f8fff1c55d5f32e7ccef8dfc13eec5b3855abc57c8862e82c47a348b0/68747470733a2f2f7374696c6c6d61696e7461696e65642e636f6d2f446f6e6e79353330302f63616c656e6461722e706e67)](https://stillmaintained.com/Donny5300/calendar)

Extended documentation comming soon!

Place this line in your controller: use Donny5300\\Calendar\\Calendar as Cal;

or add it to your config/app.php

use Donny5300\\Calendar\\Calendar as Cal;

```
$calendar = new Cal;

//Set to show current month name
$calendar->setMonthName();
//Set to show current year
$calendar->showYear();
//Set to show week
$calendar->showWeek();
//Set for input name, this will result in Input::get('date')
$calendar->setDate('date');
//Set day labels, currently in dutch
$calendar->dayLabels(null); //Day labels format: key => value
//Start time
$calendar->startTime(8); //Start time
//End time
$calendar->endTime(23); //End time
//Set interval for calendar
$calendar->setInterval(30); //Interval
//Set next label
$calendar->setNextLabel('Next'); //NextLabel
//Set previous label
$calendar->setPrevLabel('Previous'); //Previous Label
//Set TableClass
$calendar->setTableClass('table table-responsive'); //TableClass
//Set Table ID
$calendar->setTableId('test-id'); //Table ID
//Class to append to all td's matching that date
$calendar->setTodayClass('TestClass');
//View type (currently only supporting week view)
$calendar->viewType('week');
//Set the path for the next and previous button
$calendar->setPath('test/test2');
//Calendar array
$calendar->events($events);

$cal = $calendar->render();

```

How to render Events Array:

```
$events = [
            '2015-04-04 10:00:00' => [
                'title' => 'test 1'
            ],

            '05-04-2015 10:00' => [
                'title' => 'test 1'
            ],

            '06-04-2015 12:00' => [
                'title' => 'test 1'
            ],

            '07-04-2015 16:00' => [
                'title' => 'test 1'
            ],

            '08-04-2015 19:00' => [
                'title' => 'test 1'
            ],
        ];

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4244962?v=4)[Donny5300](/maintainers/Donny5300)[@Donny5300](https://github.com/Donny5300)

### Embed Badge

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

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

PHPackages © 2026

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