CardDAV endpoint that fetches TwentyCRM contacts and provides them to CardDAV clients
Install sabre/dav
composer installAll contacts are fetched with each request. Data is not persisted currently.
data/db.sqlite is part of sabre/dav
config.php shows all available configuration variables.
Create a file config.local.php to override the default configuration.
<?php
namespace TwentyCardavBridge;
$twentyApiBaseUrl = 'https://twenty.example.com/rest';
$twentyApiAuthToken = '';php ./test_api.phpRun server
php -S localhost:8080 ./server.phpUse Postman or similar to test the server
REPORT http://localhost:8080/addressbooks/global/twenty-addressbook/