u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
439 stars 144 forks source link

Compatibility with webcal url #332

Closed dcr31000 closed 4 months ago

dcr31000 commented 4 months ago

PHP Version

8.1.20

PHP date.timezone

Europe/Paris

ICS Parser Version

3.3.1

Operating System

Debian

Description

Hello,

I'm trying to parse an ics with webcal url format (webcal://{}-caldav.icloud.com/published/{}). The url is valided by https://icalendar.org/validator.html

When i'm using ics-parser, I got this error: ErrorException: Warning: file_exists(): Unable to find the wrapper "webcal" - did you forget to enable it when you configured PHP? in {}/vendor/johngrogg/ics-parser/src/ICal/ICal.php:2571

Is ics-parser compatible with webcal ?

Steps to Reproduce

Get a webcal url (with iCloud for example) Do new ICal({url})

u01jmg3 commented 4 months ago

It isn't - PR welcome

u01jmg3 commented 4 months ago

Please feel free to reopen if/when you'd like to submit a PR.