Statistics
7
0
2
27d
Badges
Dependencies

EventCalendar

Total Downloads Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality 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}
  • 0.6.1 Version 0.6.1

    Changelog:

    • initialized AbstractCalender::$onDateChange
    • AbstractCalendar::render() now triggers event onDateChange
  • 0.6.0 Version 0.6.0

    Changelog:

    • raised minimal version of PHP to 7.4
    • made most properties readable, removed most getters and setters
    • BC break: BasicCalendar (and its descendants) uses translator registered to Latte
    • deprecated SimpleCalendar and BasicCalendar
    • allowed custom events in GoogleCalendar
    • BC break: translations use message ids
    • BC break: day and month names are no longer automatically truncated in BasicCalendar
    • BC break: marked most classes as final
  • 0.5.0 Version 0.5.0

    Changelog:

    • raised minimal version of PHP to 7.3
    • renamed namespace EventCalendar\Goog to EventCalendar\Google, renamed classes in it to Google*, renamed property GoogCalendar::$googAdapter to $googleAdapter
    • re-added support for Latte 2.5
  • 0.4.0 Version 0.4.0

    Changelog:

    • updated for Nette 3, dropped support for older versions
  • 0.3.1 Version 0.3.1

    Changelog:

    • fixed type of year and month for non-default values
  • 0.3.0 Version 0.3.0

    Changelog:

    • raised minimal version of PHP to 7.1
    • updated for Nette 2.4, dropped support for older versions
    • fixed Composer autoloading

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com