sandritsch91/yii2-widget-fullcalendar

A FullCalendar widget for Yii2

Maintainers

Package info

github.com/Sandritsch91/yii2-widget-fullCalendar

Type:yii2-extension

pkg:composer/sandritsch91/yii2-widget-fullcalendar

Transparency log

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-08-13 12:22 UTC

This package is auto-updated.

Last update: 2026-08-13 12:23:19 UTC


README

A FullCalendar widget for yii2

Currently supported versions of FullCalendar are 7.x

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist sandritsch91/yii2-widget-fullcalendar

or add

"sandritsch91/yii2-widget-fullcalendar": "*"

to the require section of your composer.json

Usage

use sandritsch91\yii2\fullcalendar\FullCalendar;

echo FullCalendar::widget([
    'events' => [],
    'clientOptions' => [
        // plugin options, see the fullcalendar documentation
    ]
]);

Widget options

  • theme: Choose a theme for the calendar. Default ist 'classic'. Available themes are:
    • classic
    • breezy
    • forma
    • monarch
    • pulse
    • bs5 (a separate package for bootstrap 5 is required, see the suggest section of the composer.json)
    • own theme (pass fqcn of your AssetBundle)
  • palette: Choose a color palette for the calendar. Only available for in-built themes (Apart from classic). Check the vendor package of fullcalendar for available themes and their palettes.
  • options: HTML attributes for the calendar container tag
  • events: Array of events to be displayed on the calendar. See the FullCalendar documentation for the event object structure.
  • clientOptions: Array of options to be passed to the FullCalendar JS plugin. See the FullCalendar documentation for available options.
  • defaultClientOptions: Same as clientOptions, but these options will be merged with the default options of the widget. This is useful if you want to set some options globally for all instances of the widget.