{"id":14966619,"url":"https://github.com/philippfrenzel/yii2fullcalendar","last_synced_at":"2025-04-12T21:25:32.048Z","repository":{"id":11247164,"uuid":"13644824","full_name":"philippfrenzel/yii2fullcalendar","owner":"philippfrenzel","description":"JQuery Fullcalendar Yii2 Extension","archived":false,"fork":false,"pushed_at":"2022-12-28T19:20:19.000Z","size":1280,"stargazers_count":133,"open_issues_count":43,"forks_count":98,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-04-04T01:06:15.183Z","etag":null,"topics":["ajax","calendar","fullcalendar","php","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philippfrenzel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-17T09:40:54.000Z","updated_at":"2024-10-11T11:56:20.000Z","dependencies_parsed_at":"2023-01-13T16:24:24.537Z","dependency_job_id":null,"html_url":"https://github.com/philippfrenzel/yii2fullcalendar","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippfrenzel%2Fyii2fullcalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippfrenzel%2Fyii2fullcalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippfrenzel%2Fyii2fullcalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philippfrenzel%2Fyii2fullcalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philippfrenzel","download_url":"https://codeload.github.com/philippfrenzel/yii2fullcalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633301,"owners_count":21136851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","calendar","fullcalendar","php","yii2","yii2-extension"],"created_at":"2024-09-24T13:36:42.156Z","updated_at":"2025-04-12T21:25:32.009Z","avatar_url":"https://github.com/philippfrenzel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yii2fullcalendar\n================\nJQuery Fullcalendar Yii2 Extension\nJQuery from: http://arshaw.com/fullcalendar/\nVersion 4.0.2\nLicense MIT\n\nJQuery Documentation:\nhttp://arshaw.com/fullcalendar/docs/\nYii2 Extension by \u003cphilipp@frenzel.net\u003e\n\nA tiny sample can be found here:\nhttp://yii2fullcalendar.beeye.org\n\n[![Latest Stable Version](https://poser.pugx.org/philippfrenzel/yii2fullcalendar/v/stable.svg)](https://packagist.org/packages/philippfrenzel/yii2fullcalendar)\n[![Build Status](https://travis-ci.org/philippfrenzel/yii2fullcalendar.svg?branch=master)](https://travis-ci.org/philippfrenzel/yii2fullcalendar)\n[![Code Climate](https://codeclimate.com/github/philippfrenzel/yii2fullcalendar.png)](https://codeclimate.com/github/philippfrenzel/yii2fullcalendar)\n[![License](https://poser.pugx.org/philippfrenzel/yii2fullcalendar/license.svg)](https://packagist.org/packages/philippfrenzel/yii2fullcalendar)\n\nInstallation\n============\nPackage is although registered at packagist.org - so you can just add one line of code, to let it run!\n\nadd the following line to your composer.json require section:\n```json\n  \"philippfrenzel/yii2fullcalendar\":\"*\",\n```\n\nor run:\n```\n$ php composer.phar require philippfrenzel/yii2fullcalendar \"*\"\n```\n\nAnd ensure, that you have the following plugin installed global:\n\n\u003e php composer.phar global require \"fxp/composer-asset-plugin:~1.0\"\n\nChangelog\n---------\n\n17-04-2019 Updated to latest 4.0.2 Stable Version of the library\n19-01-2017 Updated to include non-standard fields\n29-11-2014 Updated to latest 2.2.3 Version of the library\n\nUsage\n=====\n\nQuickstart Looks like this:\n\n```php\n\n  $events = array();\n  //Testing\n  $Event = new \\yii2fullcalendar\\models\\Event();\n  $Event-\u003eid = 1;\n  $Event-\u003etitle = 'Testing';\n  $Event-\u003estart = date('Y-m-d\\TH:i:s\\Z');\n  $Event-\u003enonstandard = [\n    'field1' =\u003e 'Something I want to be included in object #1',\n    'field2' =\u003e 'Something I want to be included in object #2',\n  ];\n  $events[] = $Event;\n\n  $Event = new \\yii2fullcalendar\\models\\Event();\n  $Event-\u003eid = 2;\n  $Event-\u003etitle = 'Testing';\n  $Event-\u003estart = date('Y-m-d\\TH:i:s\\Z',strtotime('tomorrow 6am'));\n  $events[] = $Event;\n\n  ?\u003e\n\n  \u003c?= \\yii2fullcalendar\\yii2fullcalendar::widget(array(\n      'events'=\u003e $events,\n  ));\n```\n\nNote, that this will only view the events without any detailed view or option to add a new event.. etc.\n\nNon-Standard fields\n===================\n\nYou 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.\n\nSo, 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`.\n\nAJAX Usage\n==========\nIf you wanna use ajax loader, this could look like this:\n\n# 20171023 ajaxEvents are replaced by events - pls. check fullcalendar io documentation for details\n\n```php\n\u003c?= yii2fullcalendar\\yii2fullcalendar::widget([\n      'options' =\u003e [\n        'lang' =\u003e 'de',\n        //... more options to be defined here!\n      ],\n      'events' =\u003e Url::to(['/timetrack/default/jsoncalendar'])\n    ]);\n?\u003e\n```\n\nand inside your referenced controller, the action should look like this:\n\n```php\npublic function actionJsoncalendar($start=NULL,$end=NULL,$_=NULL){\n\n    \\Yii::$app-\u003eresponse-\u003eformat = \\yii\\web\\Response::FORMAT_JSON;\n\n    $times = \\app\\modules\\timetrack\\models\\Timetable::find()-\u003ewhere(array('category'=\u003e\\app\\modules\\timetrack\\models\\Timetable::CAT_TIMETRACK))-\u003eall();\n\n    $events = array();\n\n    foreach ($times AS $time){\n      //Testing\n      $Event = new \\yii2fullcalendar\\models\\Event();\n      $Event-\u003eid = $time-\u003eid;\n      $Event-\u003etitle = $time-\u003ecategoryAsString;\n      $Event-\u003estart = date('Y-m-d\\TH:i:s\\Z',strtotime($time-\u003edate_start.' '.$time-\u003etime_start));\n      $Event-\u003eend = date('Y-m-d\\TH:i:s\\Z',strtotime($time-\u003edate_end.' '.$time-\u003etime_end));\n      $events[] = $Event;\n    }\n\n    return $events;\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippfrenzel%2Fyii2fullcalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippfrenzel%2Fyii2fullcalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippfrenzel%2Fyii2fullcalendar/lists"}