1. Go to this page and download the library: Download mxmilu666/nyadav library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mxmilu666 / nyadav example snippets
use NyaDAV\NyaDAV;
use NyaDAV\NyaDAVException;
try {
$dav = new NyaDAV('example.com', 80, false); // Set true for SSL
} catch (NyaDAVException $e) {
echo $dav->err;
//or
echo 'Error: ' . $e->getMessage();
}