labrin/calendar-bundle

Symfony bundle integrating FullCalendar.js for managing events, tasks, and appointments with drag-and-drop and CRUD support.

Maintainers

Package info

github.com/najoukou8/labrin-calendar-bundle

Language:Twig

Type:symfony-bundle

pkg:composer/labrin/calendar-bundle

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2025-07-07 08:04 UTC

This package is auto-updated.

Last update: 2026-04-07 09:42:15 UTC


README

A Symfony bundle that provides a full-featured calendar interface and event management system.

Installation

  1. Install the bundle via Composer :
composer require labrin/calendar-bundle:dev-main
  1. Register the routes

Add the following to your main Symfony application's config/routes.yaml to load the bundle routes under /calendar

calendar:
  resource: '@LabrinCalendarBundle/Resources/config/routes.yaml'
  prefix: /calendar
  1. Run Doctrine Migrations

Create and apply migrations for the Event entity used by the bundle:

php bin/console make:migration
php bin/console doctrine:migrations:migrate

Usage

  1. Inject and call the CalendarService in your controller

Use the bundle?s calendar service to fetch event data for a specific user:

// In your controller
$data = $this->calendarService->getCalendarDataForUser($user);

return $this->render('test/index.html.twig', [
'events' => $data['events'],
'draggableEvents' => $data['draggableEvents'],
'user' => $user,
]);
  1. Include the calendar Twig template in your view

Embed the calendar UI by including the bundle's Twig template:

{# test/index.html.twig #}
{% include '@LabrinCalendar/calendar/index.html.twig' %}

Note

  • make sure to provide a user when fetching calendar data.
  • You can render the calendar anywhere in your application by calling the service and including the Twig template.