I’m currently working on a grav port of my former WP Plugin wp-caldav2ics which can be found on GitHub.
I’ve managed to get it to work for me, but there is still an issue that would prevent it to work for others, if their php executable on the server is other than /usr/local/bin/php (as it is for me, currently hardcoded as ‘#!/usr/local/bin/php’).
the weird thing is: if I use the shebang ‘#!/usr/bin/env php’ for the file jobs/create_calendars.php (which actually does the real job) from the commandline, all is ok.
but when it is called from the grav scheduler via $scheduler->addCommand() as described in the docs, it fails with
/usr/bin/env: 'php': No such file or directory
in the log, so, obviously, the shebang which should find the correct php path, does not work here.
This is where I’m stuck ATM, maybe someone here has an idea how to solve this.
as an addition, I just want to state that it is far less work to create a nice grav plugin backend via blueprints as in Wordpress