2017 © Pedro Peláez
 

yii2-extension yii2fullcalendar

Yii2 fullcalendar Widgets

image

philippfrenzel/yii2fullcalendar

Yii2 fullcalendar Widgets

  • Sunday, May 13, 2018
  • by philippfrenzel
  • Repository
  • 21 Watchers
  • 90 Stars
  • 71,370 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 72 Forks
  • 19 Open issues
  • 35 Versions
  • 10 % Grown

The README.md

yii2fullcalendar

JQuery Fullcalendar Yii2 Extension JQuery from: http://arshaw.com/fullcalendar/ Version 4.0.2 License MIT, (*1)

JQuery Documentation: http://arshaw.com/fullcalendar/docs/ Yii2 Extension by philipp@frenzel.net, (*2)

A tiny sample can be found here: http://yii2fullcalendar.beeye.org, (*3)

Latest Stable Version Build Status Code Climate License, (*4)

Installation

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

add the following line to your composer.json require section:, (*6)

  "philippfrenzel/yii2fullcalendar":"*",

or run:, (*7)

$ php composer.phar require philippfrenzel/yii2fullcalendar "*"

And ensure, that you have the following plugin installed global:, (*8)

php composer.phar global require "fxp/composer-asset-plugin:~1.0", (*9)

Changelog

17-04-2019 Updated to latest 4.0.2 Stable Version of the library 19-01-2017 Updated to include non-standard fields 29-11-2014 Updated to latest 2.2.3 Version of the library, (*10)

Usage

Quickstart Looks like this:, (*11)


$events = array(); //Testing $Event = new \yii2fullcalendar\models\Event(); $Event->id = 1; $Event->title = 'Testing'; $Event->start = date('Y-m-d\TH:i:s\Z'); $Event->nonstandard = [ 'field1' => 'Something I want to be included in object #1', 'field2' => 'Something I want to be included in object #2', ]; $events[] = $Event; $Event = new \yii2fullcalendar\models\Event(); $Event->id = 2; $Event->title = 'Testing'; $Event->start = date('Y-m-d\TH:i:s\Z',strtotime('tomorrow 6am')); $events[] = $Event; ?> = \yii2fullcalendar\yii2fullcalendar::widget(array( 'events'=> $events, )); ``` Note, that this will only view the events without any detailed view or option to add a new event.. etc. 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 ========== If you wanna use ajax loader, this could look like this: # 20171023 ajaxEvents are replaced by events - pls. check fullcalendar io documentation for details ```php = yii2fullcalendar\yii2fullcalendar::widget([ 'options' => [ 'lang' => 'de', //... more options to be defined here! ], 'events' => Url::to(['/timetrack/default/jsoncalendar']) ]); ?>

and inside your referenced controller, the action should look like this:, (*12)

public function actionJsoncalendar($start=NULL,$end=NULL,$_=NULL){

    \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

    $times = \app\modules\timetrack\models\Timetable::find()->where(array('category'=>\app\modules\timetrack\models\Timetable::CAT_TIMETRACK))->all();

    $events = array();

    foreach ($times AS $time){
      //Testing
      $Event = new \yii2fullcalendar\models\Event();
      $Event->id = $time->id;
      $Event->title = $time->categoryAsString;
      $Event->start = date('Y-m-d\TH:i:s\Z',strtotime($time->date_start.' '.$time->time_start));
      $Event->end = date('Y-m-d\TH:i:s\Z',strtotime($time->date_end.' '.$time->time_end));
      $events[] = $Event;
    }

    return $events;
  }

The Versions

13/05 2018

dev-master

9999999-dev http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

04/05 2018

3.9.0

3.9.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

29/03 2018

3.8.0.1

3.8.0.1 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

10/01 2018

3.8.0

3.8.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

15/11 2017

3.7.1

3.7.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

14/11 2017

3.7.0

3.7.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

20/09 2017

3.6.8

3.6.8.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

19/09 2017

3.6.7

3.6.7.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

19/09 2017

3.6.6

3.6.6.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

19/09 2017

3.6.4

3.6.4.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

18/09 2017

3.6.2

3.6.2.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

12/09 2017

3.6.1

3.6.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 widget fullcalendar

12/09 2017

3.6.0

3.6.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/09 2017

1.5.4

1.5.4.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/09 2017

3.5.7

3.5.7.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/09 2017

3.5.6

3.5.6.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/09 2017

3.5.5

3.5.5.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/09 2017

3.5.4

3.5.4.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

23/09 2016

3.0.3

3.0.3.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

23/09 2016

3.0.2

3.0.2.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

23/09 2016

3.0.1

3.0.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

14/09 2016

3.0.0

3.0.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

23/04 2016

2.5.3

2.5.3.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

19/04 2016

2.5.2

2.5.2.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

12/04 2016

2.5.1

2.5.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

28/12 2015

2.5.0

2.5.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

19/12 2015

2.4.2

2.4.2.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

04/11 2015

2.4.0

2.4.0.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

26/08 2015

2.3.3

2.3.3.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

16/06 2015

2.3.2

2.3.2.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 fullcalendar

09/02 2015

2.2.7

2.2.7.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

yii2 fullcalendar

27/01 2015

2.2.6

2.2.6.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

yii2 fullcalendar

11/01 2015

2.2.5

2.2.5.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

framework yii yii2 fullcalendar

21/10 2014

2.1.1

2.1.1.0 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

framework yii yii2 fullcalendar

30/08 2014

dev-fullcalendar16

dev-fullcalendar16 http://www.frenzel.net/

Yii2 fullcalendar Widgets

  Sources   Download

MIT License

The Requires

 

framework yii yii2 fullcalendar