brilik/calendar

Display Calendar with adding events for popular frameworks (Bootstrap, TailWinds...).

v1.0.0 2023-08-06 13:54 UTC

This package is auto-updated.

Last update: 2024-11-06 16:52:34 UTC


README

Display Calendar with adding events for popular frameworks (Bootstrap, TailWinds...).

Latest Version on Packagist Build Status Quality Score Total Downloads

Requirements

  • PHP 7.3+

Installation

You can install the package via composer:

composer require brilik/calendar

How it works

use VitoBryliano\Calendar\TailWindCalendar;
use VitoBryliano\Calendar\BootstrapCalendar;

// Get date in ISO format
$date = Carbon::now()->tz('Europe/Kiev')->format('Y-m-d');
// You can create calendar in the Bootstrap styles
$calendar = new BootstrapCalendar($date);
// Or you can create calendar in the TailWind styles
$calendar = new TailWindCalendar($date);
// You can add navigate for choose month
$calendar->navigation = true;
// You can add custom name months or their translations
$calendar->setWeekDaysName([
    __('Mon'),
    __('Tue'),
    __('Wed'),
    __('Thu'),
    __('Fri'),
    __('Sut'),
    __('Sun')
]);

Changelog

Please see CHANGELOG for more information what has changed recently.

License

The MIT License (MIT). Please see License File for more information.