survos/ux-calendar-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

survos/ux-calendar-bundle

Composer 安装命令:

composer require survos/ux-calendar-bundle

包简介

FullCalendar UX integration for Symfony with AssetMapper and Twig components

README 文档

README

survos/ux-calendar-bundle is a small Symfony UX bundle for rendering FullCalendar with AssetMapper, Twig components, and Stimulus.

Where this fits

Three projects, three jobs — don't confuse them:

Project Role
survos/ux-calendar-bundle (this) The rendering/aggregation library: FullCalendar v7 + AssetMapper + a normalized EventSourceInterface to merge iCal feeds.
ccal The Community Calendar Aggregator app: orgs, feeds, moderation, user subscriptions, event flags. Consumes this bundle.
demo/ (in this repo) A minimal smoke-test of the bundle. Not the app — that's ccal.

Deprecated/archived predecessors that blurred these lines: survos/rappcal, tacman/CalendarBundle (tattali fork), survos-sites/calendar-demo.

Current scope

  • AssetMapper-aware bundle setup
  • Twig component for rendering a calendar shell
  • Stimulus controller wired to FullCalendar
  • Support for passing a JSON feed URL and an optional iCal URL as component input
  • Backend contracts for normalized calendar events and event sources
  • iCal import via johngrogg/ics-parser

Example

<twig:full_calendar
    url="/fc-load-events"
    icsUrl="https://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
    initialView="dayGridMonth"
/>

iCal

This bundle now includes the first step toward first-class iCal parsing via an EventSourceInterface contract plus an IcsEventSource adapter backed by johngrogg/ics-parser.

The intended architecture is:

  • EventSourceInterface for calendar providers
  • an event DTO normalized for FullCalendar and iCal export/import
  • one or more iCal adapters/parsers
  • optional export mapping, likely using spatie/icalendar-generator
  • optional entity mapping via attributes and CalendarEntityInterface

That is the cleaner path if you want JSON feeds, iCal ingestion, and later iCal export to coexist without baking transport details into the Stimulus controller.

Finding calendars

You can find public iCal calendars to test against at Calendar Labs.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-08