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

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

xtodx/calendar
==============

Laravel 6 Flexible Calendar

0.2.14(6y ago)033PHPPHP &gt;=7.2.0

Since Oct 13Pushed 6y agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (17)Used By (0)

Laravel 5 Calendar
==================

[](#laravel-5-calendar)

Flexible Calendar for Laravel 5, supports Month, Week and Day Views and multiple events per date.

To change the view type dynamically, pass in a GET variable called 'cv' (calendar view) with either a 'week' or 'day' value. Day and Week views are split into 30 minute interval rows.

**For Laravel 4 use [makzumi/laravel-calendar](https://github.com/makzumi/laravel-calendar)**

Installation instructions for Laravel 5:
----------------------------------------

[](#installation-instructions-for-laravel-5)

Add this to "require" section in composer.json:

```
"skecskes/calendar": "0.2.*"

```

After that run a `composer update`, and then in /config/app.php add this line to providers array:

```
'providers' => array(
	...,
		Skecskes\Calendar\CalendarServiceProvider::class,
	),

```

If you want to change some of the default values of calendar, first publish the configuration with

```
php artisan vendor:publish

```

This will create new configuration file in your app `config/calendar.php` where you can overwrite default values.

Usage
-----

[](#usage)

To use, create a new Calender instance and generate it, below you'll find several options to customize it as well:

```
	$events = array(
		"2014-04-09 10:30:00" => array(
			"Event 1",
			"Event 2  with html",
		),
		"2014-04-12 14:12:23" => array(
			"Event 3",
		),
		"2014-05-14 08:00:00" => array(
			"Event 4",
		),
	);

	$cal = Skecskes\Calendar\Facades\Calendar::make(); // create instance

	/**** OPTIONAL METHODS ****/
	$cal->setDate(Input::get('cdate')); //Set starting date
	$cal->setBasePath('/dashboard'); // Base path for navigation URLs
	$cal->showNav(true); // Show or hide navigation
	$cal->setView(Input::get('cv')); //'day' or 'week' or null
	$cal->setStartEndHours(8,20); // Set the hour range for day and week view
	$cal->setTimeClass('ctime'); //Class Name for times column on day and week views
	$cal->setEventsWrap(array('', '')); // Set the event's content wrapper
	$cal->setDayWrap(array('','')); //Set the day's number wrapper
	$cal->setNextIcon('>>'); //Can also be html:
	$cal->setPrevIcon('setHeadClass('table-header'); //Set top header's class name
	$cal->setNextClass('btn'); // Set next btn class name
	$cal->setPrevClass('btn'); // Set Prev btn class name
	$cal->setEvents($events); // Receives the events array
	/**** END OPTIONAL METHODS ****/

	echo $cal->generate() // Return the calendar's html;

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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 ~105 days

Recently: every ~332 days

Total

16

Last Release

2285d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

0.2.13PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/90301739899b418ac147020ef8fb09f1c8eea487e02f1bf1153bbade39564c6f?d=identicon)[xtodx](/maintainers/xtodx)

---

Top Contributors

[![skecskes](https://avatars.githubusercontent.com/u/3411329?v=4)](https://github.com/skecskes "skecskes (22 commits)")[![makzumi](https://avatars.githubusercontent.com/u/1649159?v=4)](https://github.com/makzumi "makzumi (4 commits)")[![xtodx](https://avatars.githubusercontent.com/u/18610137?v=4)](https://github.com/xtodx "xtodx (2 commits)")[![AndreasLoukakis](https://avatars.githubusercontent.com/u/794135?v=4)](https://github.com/AndreasLoukakis "AndreasLoukakis (1 commits)")[![tpenaranda](https://avatars.githubusercontent.com/u/12966330?v=4)](https://github.com/tpenaranda "tpenaranda (1 commits)")

---

Tags

laraveleventscalendar

### Embed Badge

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

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

###  Alternatives

[chelout/laravel-relationship-events

Missing relationship events for Laravel

5252.3M17](/packages/chelout-laravel-relationship-events)

PHPackages © 2026

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