Download the PHP package da-sie/livewire-calendar without Composer

On this page you can find all versions of the php package da-sie/livewire-calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package livewire-calendar

Livewire Calendar

A Laravel Livewire calendar component with month, week, and day views. Supports multi-day events, drag-and-drop, keyboard navigation, and full accessibility (ARIA).

Fork of asantibanez/livewire-calendar, modernized for Livewire 4, Laravel 11-13, and PHP 8.2+.

Requirements

Installation

Quick Start

Create a Livewire component that extends LivewireCalendar:

Include in a Blade view:

Add the drag-and-drop scripts after Livewire's scripts:

Event Format

Events are keyed arrays with these fields:

Key Type Required Description
id mixed yes Unique identifier
title string yes Display title
description string no Description text
date Carbon/string yes Start date
date_end Carbon/string no End date (inclusive) for multi-day events

Multi-Day Events

Add date_end to make an event span multiple days:

Multi-day events display across all days in their range. The title shows on the start day; continuation days show a compact indicator. Events without date_end behave as single-day events.

Loading multi-day events: If your events can start before the visible grid, use an overlap query:

View Modes

The calendar supports three view modes: month (default), week, and day.

Switching Views

Call setViewMode() from your component or a custom view:

Or from Blade via wire:click:

Navigation

Method Description
goToPreviousMonth Navigate to previous month
goToNextMonth Navigate to next month
goToCurrentMonth Navigate to current month
goToPreviousWeek Navigate to previous week
goToNextWeek Navigate to next week
goToPreviousDay Navigate to previous day
goToNextDay Navigate to next day

Use before-calendar-view or after-calendar-view to add navigation controls.

Filtering Properties

Use these properties in events() to filter your data:

Property Description
$this->startsAt Start of the visible period
$this->endsAt End of the visible period
$this->gridStartsAt Start of the grid (may include adjacent days)
$this->gridEndsAt End of the grid

In day mode, gridStartsAt and gridEndsAt match the single visible day. In week mode, they match the visible week.

Customization

Component Props

Publishing Views

Published views receive these variables:

day view: $componentId, $day, $dayInMonth, $isToday, $events, $viewMode

event view: $event, $isStart, $isEnd, $eventClickEnabled, $dragAndDropEnabled

Publishing Assets

To use the JS file directly (instead of @livewireCalendarScripts):

Then include manually:

Interactions

Override these methods in your component:

Multi-Day Drag Source

For multi-day events, you may need to know which day segment was dragged. Listen for the calendar-event-dropped Livewire event:

Accessibility

The calendar includes full ARIA support:

Testing

Credits

License

MIT. See LICENSE.md.


All versions of livewire-calendar with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
livewire/livewire Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package da-sie/livewire-calendar contains the following files

Loading the files please wait ...