groupwareserver.php
This server combines both CardDAV and CalDAV functionality into a single server. It is assumed that the server runs at the root of a HTTP domain (be that a domainname-based vhost or a specific TCP port.
This example also assumes that you're using SQLite and the database has already been setup (along with the database tables).
You may choose to use MySQL instead, just change the PDO connection statement.