Download the PHP package donatj/simplecalendar without Composer
On this page you can find all versions of the php package donatj/simplecalendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download donatj/simplecalendar
More information about donatj/simplecalendar
Files in donatj/simplecalendar
Download donatj/simplecalendar
More information about donatj/simplecalendar
Files in donatj/simplecalendar
Vendor donatj
Package simplecalendar
Short Description A light, easy to use calendar rendering library
License MIT
Homepage https://donatstudios.com/SimpleCalendar
Package simplecalendar
Short Description A light, easy to use calendar rendering library
License MIT
Homepage https://donatstudios.com/SimpleCalendar
Keywords calendar
Please rate this library. Is it a good library?
Informations about the package simplecalendar
Simple Calendar
A very simple, easy to use PHP calendar rendering class.
Requirements
- php: >=7.2
- ext-calendar: *
Installing
Install the latest version with:
Examples
Documentation
Class: \donatj\SimpleCalendar
Simple Calendar
Method: SimpleCalendar->__construct
Parameters:
- \DateTimeInterface | int | string | null
$calendarDate
- \DateTimeInterface | false | int | string | null
$today
Method: SimpleCalendar->setDate
Sets the date for the calendar.
Parameters:
- \DateTimeInterface | int | string | null
$date
- DateTimeInterface or Date string parsed by strtotime for the calendar date. If null set to current timestamp.
Throws: \Exception
Method: SimpleCalendar->setCalendarClasses
Sets the class names used in the calendar
Parameters:
- array<string,string>
$classes
- Map of element to class names used by the calendar.
Method: SimpleCalendar->setToday
Sets "today"'s date. Defaults to today.
Parameters:
- \DateTimeInterface | false | int | string | null
$today
-null
will default to today,false
will disable the rendering of Today.
Throws: \Exception
Method: SimpleCalendar->setWeekDayNames
Parameters:
- string[] | null
$weekDayNames
Method: SimpleCalendar->addDailyHtml
Add a daily event to the calendar
Parameters:
- string
$html
- The raw HTML to place on the calendar for this event - \DateTimeInterface | int | string
$startDate
- Date string for when the event starts - \DateTimeInterface | int | string | null
$endDate
- Date string for when the event ends. Defaults to start date
Throws: \Exception
Method: SimpleCalendar->clearDailyHtml
Clear all daily events for the calendar
Method: SimpleCalendar->setStartOfWeek
Sets the first day of the week
Parameters:
- int | string
$offset
- Day the week starts on. ex: "Monday" or 0-6 where 0 is Sunday
Method: SimpleCalendar->show
Returns/Outputs the Calendar
DEPRECATED
Use render()
method instead.
Parameters:
- bool
$echo
- Whether to echo resulting calendar
Returns:
- string - HTML of the Calendar
Method: SimpleCalendar->render
Returns the generated Calendar
All versions of simplecalendar with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-calendar Version *
ext-calendar Version *
The package donatj/simplecalendar contains the following files
Loading the files please wait ....