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

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

alhad15/laravel-fullcalendar
============================

Laravel component for fullcalendar package

V1.2.4(8y ago)00MITPHPPHP &gt;=5.6.4

Since Nov 19Pushed 6y agoCompare

[ Source](https://github.com/alhad15/laravel-fullcalendar)[ Packagist](https://packagist.org/packages/alhad15/laravel-fullcalendar)[ Docs](https://github.com/edofre/laravel-fullcalendar)[ RSS](/packages/alhad15-laravel-fullcalendar/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (39)Used By (0)

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

[](#laravel-fullcalendar-component)

[![Latest Stable Version](https://camo.githubusercontent.com/87508d738029befc0bd82c77056ceaecc1064d58ab50fb9933417d8f42acf61b/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d66756c6c63616c656e6461722f762f737461626c65)](https://packagist.org/packages/edofre/laravel-fullcalendar)[![Total Downloads](https://camo.githubusercontent.com/936df8d8e456b25b0fc7a2d3666baef1754e310f0d2bb8b74e3d65df46133ca7/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d66756c6c63616c656e6461722f646f776e6c6f616473)](https://packagist.org/packages/edofre/laravel-fullcalendar)[![Latest Unstable Version](https://camo.githubusercontent.com/e7a3a06c4cdaaaff05fab91aeb275f06dd95fcad7c8da33997f10108f771e43b/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d66756c6c63616c656e6461722f762f756e737461626c65)](https://packagist.org/packages/edofre/laravel-fullcalendar)[![License](https://camo.githubusercontent.com/2bb6433662450404ac7c6ba1bfccee136d3d42adc1c2794688965d88ea403152/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d66756c6c63616c656e6461722f6c6963656e7365)](https://packagist.org/packages/edofre/laravel-fullcalendar)[![composer.lock](https://camo.githubusercontent.com/07aca2753e6b8acd86cfdf244b561dd579486648b7374cba2895a33aa4422f71/68747470733a2f2f706f7365722e707567782e6f72672f65646f6672652f6c61726176656c2d66756c6c63616c656e6461722f636f6d706f7365726c6f636b)](https://packagist.org/packages/edofre/laravel-fullcalendar)[![Build Status](https://camo.githubusercontent.com/64fda51acf0b507d5e6623f1f0279db14b710d0d86e60b9092a87d8fef70cfc0/68747470733a2f2f7472617669732d63692e6f72672f45646f6672652f6c61726176656c2d66756c6c63616c656e6461722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Edofre/laravel-fullcalendar)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a011d85103139418f7e4fd76289d3c08104050598d044c1d48b7f7dfe3547136/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f45646f6672652f6c61726176656c2d66756c6c63616c656e6461722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Edofre/laravel-fullcalendar/?branch=master)

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

[](#installation)

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

To install, either run

```
$ php composer.phar require edofre/laravel-fullcalendar

```

or add

```
"edofre/laravel-fullcalendar": "V1.2.4"

```

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

### Note

[](#note)

The fxp/composer-asset 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 "fxp/composer-asset-plugin:^1.4.0”

```

This will add the fxp composer-asset-plugin and your composer will be able to find and download the required bower-asset/fullcalendar package. You can find more info on this page: .

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

[](#configuration)

Add the ServiceProvider to your config/app.php

```
'providers' => [
        ...
        Edofre\Fullcalendar\FullcalendarServiceProvider::class,
    ],
```

And add the facade

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

Publish assets and configuration files

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

```

### 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.

```
    \Edofre\Fullcalendar\Fullcalendar::renderScriptFiles();

```

### Example

[](#example)

Below is an example of a controller action configuring the calendar

```
    public function index()
    {
        // Generate a new fullcalendar instance
        $calendar = new \Edofre\Fullcalendar\Fullcalendar();

        // You can manually add the objects as an array
        $events = $this->getEvents();
        $calendar->setEvents($events);
        // Or you can add a route and return the events using an ajax requests that returns the events as json
        $calendar->setEvents(route('fullcalendar-ajax-events'));

        // Set options
        $calendar->setOptions([
            'locale'      => 'nl',
            'weekNumbers' => true,
            'selectable'  => true,
            'defaultView' => 'agendaWeek',
            // Add the callbacks
            'eventClick' => new \Edofre\Fullcalendar\JsExpression("
                function(event, jsEvent, view) {
                    console.log(event);
                }
            "),
            'viewRender' => new \Edofre\Fullcalendar\JsExpression("
                function( view, element ) {
                    console.log(\"View \"+view.name+\" rendered\");
                }
            "),
        ]);

        // Check out the documentation for all the options and callbacks.
        // https://fullcalendar.io/docs/

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

    /**
     * @param Request $request
     * @return string
     */
    public function ajaxEvents(Request $request)
    {
        // start and end dates will be sent automatically by fullcalendar, they can be obtained using:
        // $request->get('start') & $request->get('end')
        $events = $this->getEvents();
        return json_encode($events);
    }

    /**
     * @return array
     */
    private function getEvents()
    {
        $events = [];
        $events[] = new \Edofre\Fullcalendar\Event([
            'id'     => 0,
            'title'  => 'Rest',
            'allDay' => true,
            'start'  => Carbon::create(2016, 11, 20),
            'end'    => Carbon::create(2016, 11, 20),
        ]);

        $events[] = new \Edofre\Fullcalendar\Event([
            'id'    => 1,
            'title' => 'Appointment #' . rand(1, 999),
            'start' => Carbon::create(2016, 11, 15, 13),
            'end'   => Carbon::create(2016, 11, 15, 13)->addHour(2),
        ]);

        $events[] = new \Edofre\Fullcalendar\Event([
            'id'               => 2,
            'title'            => 'Appointment #' . rand(1, 999),
            'editable'         => true,
            'startEditable'    => true,
            'durationEditable' => true,
            'start'            => Carbon::create(2016, 11, 16, 10),
            'end'              => Carbon::create(2016, 11, 16, 13),
        ]);

        $events[] = new \Edofre\Fullcalendar\Event([
            'id'               => 3,
            'title'            => 'Appointment #' . rand(1, 999),
            'editable'         => true,
            'startEditable'    => true,
            'durationEditable' => true,
            'start'            => Carbon::create(2016, 11, 14, 9),
            'end'              => Carbon::create(2016, 11, 14, 10),
            'backgroundColor'  => 'black',
            'borderColor'      => 'red',
            'textColor'        => 'green',
        ]);
        return $events;
    }
```

You can then render the calendar by generating the HMTL and scripts

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

Tests
-----

[](#tests)

Run the tests by executing the following command:

```
composer test

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~11 days

Recently: every ~22 days

Total

37

Last Release

3051d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1075139?v=4)[Alhad Parkhi](/maintainers/alhad15)[@alhad15](https://github.com/alhad15)

---

Top Contributors

[![Edofre](https://avatars.githubusercontent.com/u/710429?v=4)](https://github.com/Edofre "Edofre (134 commits)")[![alhad15](https://avatars.githubusercontent.com/u/1075139?v=4)](https://github.com/alhad15 "alhad15 (5 commits)")[![ebarquero85](https://avatars.githubusercontent.com/u/1320985?v=4)](https://github.com/ebarquero85 "ebarquero85 (2 commits)")[![MeiRct](https://avatars.githubusercontent.com/u/11060682?v=4)](https://github.com/MeiRct "MeiRct (1 commits)")

---

Tags

eventlaraveljavascriptcalendarfullcalendar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[edofre/laravel-fullcalendar

Laravel component for fullcalendar package

591.8k](/packages/edofre-laravel-fullcalendar)[edofre/yii2-fullcalendar

Yii2 widget for fullcalendar

2761.7k1](/packages/edofre-yii2-fullcalendar)[edofre/laravel-fullcalendar-scheduler

Laravel component for fullcalendar scheduler module

251.5k](/packages/edofre-laravel-fullcalendar-scheduler)[edofre/yii2-fullcalendar-scheduler

Yii2 widget for fullcalendar scheduler module

2437.0k](/packages/edofre-yii2-fullcalendar-scheduler)[kriss/yii2-calendar-schedule

Yii2 Calendar Schedule

107.9k](/packages/kriss-yii2-calendar-schedule)

PHPackages © 2026

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