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

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

motto001/fullcalendar
=====================

Laravel component for fullcalendar package

037PHP

Since Oct 18Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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.2"

```

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.3.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)

Publish assets and configuration files

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

```

Add the ServiceProvider to your config/app.php

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

And add the facade

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

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/5d6ef7ca48f40357cfafdb8209db7d03b20d834ec0be2dfc819abe7dc2b9678b?d=identicon)[motto](/maintainers/motto)

---

Top Contributors

[![motto](https://avatars.githubusercontent.com/u/826978?v=4)](https://github.com/motto "motto (2 commits)")

### Embed Badge

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

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

###  Alternatives

[ctidigital/magento2-configurator

Keep magento persistently configured using files

174317.4k](/packages/ctidigital-magento2-configurator)[comcast/php-legal-licenses

A utility to generate a Licenses file containing the full license text for every dependency in your project for legal purposes.

821.1M9](/packages/comcast-php-legal-licenses)[xfra35/f3-cron

Job scheduling for the PHP Fat-Free Framework

73107.5k](/packages/xfra35-f3-cron)[bagusindrayana/laravel-coordinate

get nearby location from eloquent laravel

3019.7k](/packages/bagusindrayana-laravel-coordinate)

PHPackages © 2026

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