sandritsch91 / yii2-widget-fullcalendar
A FullCalendar widget for Yii2
Package info
github.com/Sandritsch91/yii2-widget-fullCalendar
Type:yii2-extension
pkg:composer/sandritsch91/yii2-widget-fullcalendar
1.0.1
2026-08-13 12:22 UTC
Requires
- php: >=8.0
- npm-asset/fullcalendar: ^7.0.2
- yiisoft/yii2: ^2.0.50
Requires (Dev)
- npm-asset/fullcalendar--bootstrap5: ^7.0.2
Suggests
- npm-asset/fullcalendar--bootstrap5: Install this extension to use the Bootstrap 5 theme for FullCalendar
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 tagevents: 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 asclientOptions, 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.