brilik / calendar
Display Calendar with adding events for popular frameworks (Bootstrap, TailWinds...).
v1.0.0
2023-08-06 13:54 UTC
Requires
- php: ^7.3|^7.4|^8.0
- breadthe/php-simple-calendar: ^1.1
README
Display Calendar with adding events for popular frameworks (Bootstrap, TailWinds...).
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.