New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

skecskes/calendar

Laravel 5 Flexible Calendar
4,322 11

Larablocks Analysis

skecskes/calendar works with Laravel 5 (latest release 0.2.12, Jun 24, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Jun 24, 2016)
  • 0 downloads a month (needs 10,000)
  • 11 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 24, 2016.
  • No releases in the last 12 months.
  • First released: Oct 13, 2015.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require skecskes/calendar
Latest Version:0.2.12
PHP:>=5.3.0
Laravel:5
Last Updated:Jun 24, 2016
Links: GitHub  ·  Packagist
Maintainer: skecskes

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

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

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 <strong> with html</stong>",
		),
		"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('<p>', '</p>')); // Set the event's content wrapper
	$cal->setDayWrap(array('<div>','</div>')); //Set the day's number wrapper
	$cal->setNextIcon('>>'); //Can also be html: <i class='fa fa-chevron-right'></i>
	$cal->setPrevIcon('<<'); // Same as above
	$cal->setDayLabels(array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat')); //Label names for week days
	$cal->setMonthLabels(array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December')); //Month names
	$cal->setDateWrap(array('<div>','</div>')); //Set cell inner content wrapper
	$cal->setTableClass('table'); //Set the table's class name
	$cal->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;

Related Packages

goldnead/statamic-events

Brand-scoped event and occurrence domain for Statamic: multi-date events, per-ev...

3,427 0
fbf/laravel-events

A Laravel 4 package to add events listings to a site

527 8
kirschbaum-development/laravel-actions

A Laravel package for handling actions and events

179,190 7
kirschbaum-development/paragon

A Laravel package for generating enum-like objects in typescript based on PHP en...

23,652 8
laborb/statamic-notifications-channel

Get notifications on Statamic events

17,851 4

Version History

Version Released PHP Laravel License
0.2.12 >=5.3.0 ~5
0.2.11 >=5.3.0 ~5
0.2.10 >=5.3.0 ~5
0.2.9 >=5.3.0 ~5
0.2.8 >=5.3.0 ~5