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

ActiveYii2-extension

mtangoo/yii2-fullcalendar
=========================

Yii2 fullcalendar Widgets

v1.0.0(3y ago)0221MITPHPPHP &gt;=7.4

Since Aug 24Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Yii2 Full Calendar extension
============================

[](#yii2-full-calendar-extension)

JQuery Fullcalendar Yii2 Extension JQuery from: Version 2.1.1 License MIT

JQuery Documentation: This is a fork of Yii2 Extension by

Installation
============

[](#installation)

Package is although registered at packagist.org - so you can just add one line of code, to let it run!

add the following line to your composer.json require section:

```
  "mtangoo/yii2-fullcalendar":"*",
```

or run:

```
  composer require mtangoo/yii2-fullcalendar,

```

Usage
=====

[](#usage)

Quickstart Looks like this:

```
use hosannahighertech\calendar\Calendar;
use hosannahighertech\calendar\models\Event;

  $events = [];
  //Testing
  $items = [
    [
      'id' => 1,
      'title' => 'Event 1',
      'start' => date('Y-m-d\TH:i:s\Z'),
      'nonstandard' => [
      'field1' => 'Something I want to be included in object #1',
      'field2' => 'Something I want to be included in object #2',
      ]
    ],
    [
      'id' => 1,
      'title' => 'Event 2',
      'start' => date('Y-m-d\TH:i:s\Z',strtotime('tomorrow 6am')),
    ]
  ];

  foreach($items as $item){
    $events[] = new Event($item);
  }

  ?>

```

Note, that this will only view the events without any detailed view or option to add a new event.. etc.

Non-Standard fields
===================

[](#non-standard-fields)

You can add non-standard fields via the non-standard fields array, for which you can pass any key/value pair, as described in the [Event Fields](https://fullcalendar.io/docs/event_data/Event_Object/) documentation.

So, using the Quick Start example above, you can read `field1` and `fields2` in your JavaScript using notation similar to `event.nonstandard.field1` and `event.nonstandard.field2`.

AJAX Usage
==========

[](#ajax-usage)

If you wanna use ajax loader, this could look like this:

20171023 ajaxEvents are replaced by events - pls. check fullcalendar io documentation for details
=================================================================================================

[](#20171023-ajaxevents-are-replaced-by-events---pls-check-fullcalendar-io-documentation-for-details)

```
