PHPackages                             alimehraei/laravel-fullcalendar-scheduler - 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. alimehraei/laravel-fullcalendar-scheduler

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

alimehraei/laravel-fullcalendar-scheduler
=========================================

Laravel component for fullcalendar scheduler module

110JavaScript

Since Jul 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AliMehraei/laravel-fullcalendar-scheduler)[ Packagist](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[ RSS](/packages/alimehraei-laravel-fullcalendar-scheduler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel fullcalendar scheduler component
========================================

[](#laravel-fullcalendar-scheduler-component)

[![Latest Stable Version](https://camo.githubusercontent.com/25208706b78e76b9631fcb40180ec9a5cdba2f7cc27504079dce439f84f87aae/68747470733a2f2f706f7365722e707567782e6f72672f616c696d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722f762f737461626c65)](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[![Total Downloads](https://camo.githubusercontent.com/afdf4f1a620ba99a6da311f7c733b6256087a5d8f3a8046def4db792b5025bc9/68747470733a2f2f706f7365722e707567782e6f72672f616c696d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722f646f776e6c6f616473)](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[![Latest Unstable Version](https://camo.githubusercontent.com/a735f4ddda5b7c58b78fdd8821ef35fcc3be96bb23be8235e5b6444ca6c1276d/68747470733a2f2f706f7365722e707567782e6f72672f616c696d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722f762f756e737461626c65)](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[![License](https://camo.githubusercontent.com/b3b9abe495009571df4fa90318a8a7042c6bc108e1007f74be238cb738af51ac/68747470733a2f2f706f7365722e707567782e6f72672f616c696d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722f6c6963656e7365)](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[![composer.lock](https://camo.githubusercontent.com/e1c3f4828e98571c5a929c6b3ea5a6d0ff6d59281f981aab19b6b27771458ae2/68747470733a2f2f706f7365722e707567782e6f72672f616c696d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722f636f6d706f7365726c6f636b)](https://packagist.org/packages/alimehraei/laravel-fullcalendar-scheduler)[![Build Status](https://camo.githubusercontent.com/9b9ea9d35813a71efea137bb10be37b7540fdebd510f2c5a4f8e1a4f368bb02c/68747470733a2f2f7472617669732d63692e6f72672f416c694d6568726165692f6c61726176656c2d66756c6c63616c656e6461722d7363686564756c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AliMehraei/laravel-fullcalendar-scheduler)

ATTENTION: THIS PACKAGE IS NOT READY YET !!
-------------------------------------------

[](#attention-this-package-is-not-ready-yet-)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
$ php composer.phar require alimehraei/laravel-fullcalendar-scheduler "v1.2.3"

```

or add

```
"alimehraei/laravel-fullcalendar-scheduler": "v1.2.3"

```

to the `require` section of your `composer.json` file.

### Note

[](#note)

This package is written based on this git repository:

The foxy/foxy plugin is required for this package to install properly. This plugin enables you to download bower packages through composer.

You can install it using this command:

```
composer global require "foxy/foxy:^1.0.0"

```

Configuration
-------------

[](#configuration)

Add the ServiceProvider to your config/app.php

```
'providers' => [
        ...
        AliMehraei\FullcalendarScheduler\FullcalendarSchedulerServiceProvider::class,
    ],
```

And add the facade

```
'aliases' => [
        ...
        'Fullcalendar' => AliMehraei\FullcalendarScheduler\Facades\FullcalendarScheduler::class,
    ],
```

Publish assets and configuration files

```
php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=fullcalendar-scheduler

```

### Manually loading script files

[](#manually-loading-script-files)

By setting the include\_scripts option in the config/.env file to false the scripts will not be included when generating the calendar. If you want to manually include the scripts you can call the following static function in your header/footer/etc.

```
    \AliMehraei\FullcalendarScheduler\FullcalendarScheduler::renderScriptFiles();

```

### Example

[](#example)

Use the following as your controller action

```
/**
 * @return \Illuminate\Http\Response
 */
public function index()
{
    // Generate a new fullcalendar instance
    $calendar = new \AliMehraei\FullcalendarScheduler\FullcalendarScheduler();

    // Set events and resources, commented lines shows how to add them via ajax
    // $calendar->setEvents(route('fullcalendar-scheduler-ajax-events'));
    $calendar->setEvents([
        ['id' => '1', 'resourceId' => 'b', 'start' => '2016-05-07T02:00:00', 'end' => '2016-05-07T07:00:00', 'title' => 'event 1'],
        ['id' => '2', 'resourceId' => 'c', 'start' => '2016-05-07T05:00:00', 'end' => '2016-05-07T22:00:00', 'title' => 'event 2'],
        ['id' => '3', 'resourceId' => 'd', 'start' => '2016-05-06', 'end' => '2016-05-08', 'title' => 'event 3'],
        ['id' => '4', 'resourceId' => 'e', 'start' => '2016-05-07T03:00:00', 'end' => '2016-05-07T08:00:00', 'title' => 'event 4'],
        ['id' => '5', 'resourceId' => 'f', 'start' => '2016-05-07T00:30:00', 'end' => '2016-05-07T02:30:00', 'title' => 'event 5'],
    ]);

    // $calendar->setResources(route('fullcalendar-scheduler-ajax-resources'));
    $calendar->setResources([
        ['id' => 'a', 'title' => 'Auditorium A'],
        ['id' => 'b', 'title' => 'Auditorium B', 'eventColor' => 'green'],
		['id' => 'c', 'title' => 'Auditorium C', 'eventColor' => 'orange'],
        [
            'id'       => 'd',
            'title'    => 'Auditorium D',
            'children' => [
                ['id' => 'd1', 'title' => 'Room D1'],
                ['id' => 'd2', 'title' => 'Room D2'],
            ],
        ],
        ['id' => 'e', 'title' => 'Auditorium E'],
        ['id' => 'f', 'title' => 'Auditorium F', 'eventColor' => 'red'],
        ['id' => 'g', 'title' => 'Auditorium G'],
        ['id' => 'h', 'title' => 'Auditorium H'],
        ['id' => 'i', 'title' => 'Auditorium I'],
        ['id' => 'j', 'title' => 'Auditorium J'],
        ['id' => 'k', 'title' => 'Auditorium K'],
        ['id' => 'l', 'title' => 'Auditorium L'],
        ['id' => 'm', 'title' => 'Auditorium M'],
        ['id' => 'n', 'title' => 'Auditorium N'],
        ['id' => 'o', 'title' => 'Auditorium O'],
        ['id' => 'p', 'title' => 'Auditorium P'],
        ['id' => 'q', 'title' => 'Auditorium Q'],
        ['id' => 'r', 'title' => 'Auditorium R'],
        ['id' => 's', 'title' => 'Auditorium S'],
        ['id' => 't', 'title' => 'Auditorium T'],
        ['id' => 'u', 'title' => 'Auditorium U'],
        ['id' => 'v', 'title' => 'Auditorium V'],
        ['id' => 'w', 'title' => 'Auditorium W'],
        ['id' => 'x', 'title' => 'Auditorium X'],
        ['id' => 'y', 'title' => 'Auditorium Y'],
        ['id' => 'z', 'title' => 'Auditorium Z'],
    ]);

    // Set options
    $calendar->setOptions([
        'now'               => '2016-05-07',
        'editable'          => true, // enable draggable events
        'aspectRatio'       => 1.8,
        'scrollTime'        => '00:00', // undo default 6am scrollTime
        'defaultView'       => 'timelineDay',
        'views'             => [
            'timelineThreeDays' => [
                'type'     => 'timeline',
                'duration' => [
                    'days' => 3,
                ],
            ],
        ],
        'resourceLabelText' => 'Rooms',
        'eventClick' => new \AliMehraei\FullcalendarScheduler\JsExpression("
                    function(event, jsEvent, view) {
                        console.log(event);
                    }
                "),
                'viewRender' => new \AliMehraei\FullcalendarScheduler\JsExpression("
                    function( view, element ) {
                        console.log(\"View \"+view.name+\" rendered\");
                    }
                "),
    ]);

    return view('fullcalendar-scheduler.index', [
        'calendar' => $calendar,
    ]);
}
```

And then add the following to your view

```
{!! $calendar->generate() !!}
```

Tests
-----

[](#tests)

Run the tests by executing the following command:

```
composer test

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/92b7638e91ed1b5ca906c6335e7354ce83951b9c39b68519d9b158cbc3f65fde?d=identicon)[AliMehraei](/maintainers/AliMehraei)

---

Top Contributors

[![AliMehraei](https://avatars.githubusercontent.com/u/72335154?v=4)](https://github.com/AliMehraei "AliMehraei (17 commits)")

### Embed Badge

![Health badge](/badges/alimehraei-laravel-fullcalendar-scheduler/health.svg)

```
[![Health](https://phpackages.com/badges/alimehraei-laravel-fullcalendar-scheduler/health.svg)](https://phpackages.com/packages/alimehraei-laravel-fullcalendar-scheduler)
```

PHPackages © 2026

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