use Sabre\DAV\Client;

$webdav = new WebDav;
$webdav->init(<INIT_URL>, <username>, <token>);
$result=$webdav->put(<PUT_ADDRESS_INCLUDE_FILE_NAME_AND_EXT>,file_get_contents($filePath));