Download the PHP package laravel-enso/calendar without Composer
On this page you can find all versions of the php package laravel-enso/calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-enso/calendar
More information about laravel-enso/calendar
Files in laravel-enso/calendar
Package calendar
Short Description Calendar and event management for Laravel Enso
License MIT
Homepage https://github.com/laravel-enso/calendar
Informations about the package calendar
Calendar
Description
Calendar adds calendar and event management to Laravel Enso.
The package supports persisted calendars and events, recurring event sequences, attendees, reminders, all-day events, and custom readonly calendar sources that can project data from outside the calendar_events table.
It also ships with a builtin Birthday calendar, reminder notifications delivered through mail, database, and broadcast channels, plus the backend API and form metadata consumed by the Enso calendar frontend.
Installation
This package is normally installed as part of the Enso ecosystem.
For standalone installation in an Enso-based application:
Optional publishes:
Birthday calendar configuration:
The package also registers the reminder command:
Features
- Manages calendars with configurable colors and privacy flags.
- Manages events with title, body, location, attendees, reminders, geocoordinates, and all-day support.
- Supports recurring events with
Once,Daily,Weekdays,Weekly,Monthly, andYearlyfrequencies. - Supports recurrence update scopes:
Only This,This And Future, andAll. - Generates and reshapes recurring sequences through dedicated create, update, delete, and extraction services.
- Exposes a builtin readonly Birthday calendar sourced from
Personrecords. - Allows registering additional custom calendars that return readonly event projections.
- Sends overdue reminders through queued mail, database, and broadcast notifications.
- Registers reminder mail previews through
laravel-enso/mails. - Registers form metadata and API resources used by the Enso calendar frontend.
Usage
Create and manage native calendars and events through the provided API routes, or register custom readonly calendars through the published provider:
A custom calendar must implement LaravelEnso\Calendar\Contracts\CustomCalendar and return event objects that implement LaravelEnso\Calendar\Contracts\ProvidesEvent.
To dispatch due reminders manually:
::: tip Tip
Use custom calendars for readonly projections coming from other bounded contexts. If users need to create or edit the events themselves, store them as native Calendar and Event records instead.
:::
::: warning Note
Reminder notifications depend on Laravel's scheduler. If the scheduler is not running, overdue reminders will remain pending until enso:calendar:send-reminders is executed.
:::
API
Commands
enso:calendar:send-reminders
Calendar Routes
All routes are registered under the core.calendar. name prefix and /api/core/calendar path prefix.
GET /api/core/calendar->core.calendar.indexGET /api/core/calendar/create->core.calendar.createPOST /api/core/calendar->core.calendar.storeGET /api/core/calendar/{calendar}/edit->core.calendar.editPATCH /api/core/calendar/{calendar}->core.calendar.updateDELETE /api/core/calendar/{calendar}->core.calendar.destroyGET /api/core/calendar/options->core.calendar.options
Event Routes
Event routes are registered under the core.calendar.events. name prefix.
GET /api/core/calendar/events->core.calendar.events.indexGET /api/core/calendar/events/create->core.calendar.events.createPOST /api/core/calendar/events->core.calendar.events.storeGET /api/core/calendar/events/{event}/edit->core.calendar.events.editPATCH /api/core/calendar/events/{event}->core.calendar.events.updateDELETE /api/core/calendar/events/{event}->core.calendar.events.destroy
Models
Calendar
LaravelEnso\Calendar\Models\Calendar
Key relations:
events()
Exposed state:
name()color()private()readonly()
Event
LaravelEnso\Calendar\Models\Event
Key relations:
parent()events()attendees()calendar()reminders()
Key methods:
store(?int $updateType = null)remove(?int $updateType)attendeeList()updateReminders($reminders)
Supported frequencies:
OnceDailyWeekdaysWeeklyMonthlyYearly
Supported recurrence update scopes:
Only ThisThis And FutureAll
Reminder
LaravelEnso\Calendar\Models\Reminder
Key methods and scopes:
send()scopeNotSent()scopeOverdue()scopeShouldSend()
Custom Calendar Contracts
LaravelEnso\Calendar\Contracts\CalendarLaravelEnso\Calendar\Contracts\CustomCalendarLaravelEnso\Calendar\Contracts\ProvidesEventLaravelEnso\Calendar\Contracts\Routable
The builtin BirthdayCalendar is the reference implementation for readonly custom calendars.
Event Payload
The event resource returned to the frontend includes:
idtitleparentIdisLastbodystartendlocationfrequencyrecurrenceEndsallDayreadonlyclassroutedeletableresizable
Validation Rules
The event request validates:
- calendar membership
- supported frequency ids
- start and end dates
- start and end times
- attendee ids
- recurrence end dates
- update scope
It also prevents:
- recurring metadata on singular events
- invalid subsequence backdating when updating future events
Configuration
config/enso/calendar.php
Keys:
birthdays.roles
Depends On
Required Enso packages:
laravel-enso/core↗laravel-enso/dynamic-methods↗laravel-enso/enums↗laravel-enso/forms↗laravel-enso/helpers↗laravel-enso/mails↗laravel-enso/migrator↗laravel-enso/people↗laravel-enso/permissions↗laravel-enso/rememberable↗laravel-enso/select↗laravel-enso/track-who↗laravel-enso/users↗
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
All versions of calendar with dependencies
laravel-enso/core Version ^12.0
laravel-enso/dynamic-methods Version ^4.0
laravel-enso/enums Version ^3.0
laravel-enso/forms Version ^5.0
laravel-enso/helpers Version ^4.0
laravel-enso/mails Version ^1.0
laravel-enso/migrator Version ^2.1
laravel-enso/people Version ^4.0
laravel-enso/permissions Version ^5.0
laravel-enso/rememberable Version ^4.0
laravel-enso/select Version ^5.0
laravel-enso/track-who Version ^3.0
laravel-enso/users Version ^2.0