konecnyjakub/event-calendar

This package is abandoned and no longer maintained. The author suggests using the nexendrie/event-calendar package instead.

Plugin for Nette based web applications for creating calendar with custom events

0.7.0 2021-05-08 15:15 UTC

This package is auto-updated.

Last update: 2024-08-31 12:51:49 UTC


README

Total Downloads Latest Stable Version Build Status Code Coverage

This is an add-on component for Nette framework which enables displaying various events in calendar. It provides methods for localisation & customization. You can also use html and Texy! in your event texts.

Installation

The best way to install it is via Composer. Just add nexendrie/event-calendar to your dependencies.

Quick start

Add to your code (in presenter/control):

<?php

declare(strict_types=1);

use Nexendrie\EventCalendar\Simple\SimpleCalendar;

class MyPresenter extends \Nette\Application\UI\Presenter
{
    protected function createComponentCalendar(): SimpleCalendar {
        $cal = new SimpleCalendar();
        return $cal;
    }
} 

and in template:

    {control calendar}