Componette

Componette

nexendrie

nexendrie / EventCalendar 0.7.0

A component for Nette - calendar with events

download-cloud-line composer require nexendrie/event-calendar

EventCalendar

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}
  • 0.7.0 Version 0.7.0

    Changelog:

    • fixed default value for option wdayMaxLen
    • renamed package to nexendrie/event-calendar
    • BC break: removed BasicCalendar
    • BC break: changed namespace to Nexendrie\EventCalendar
    • made GoogleEvent::$id and GoogleEvent::$creator writable
    • compatibility with PHP 8.0
  • 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
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4.0)
ext-calendar (*)
nette/utils (^3.1.3)
latte/latte (^2.5.3 || ^3.0)
Componette Componette felix@nette.org