1. Go to this page and download the library: Download deaniliev/laravel-docling 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/ */
deaniliev / laravel-docling example snippets
use Deaniliev\Docling\Facades\Docling;
use Deaniliev\Docling\ConvertOptions;
$result = Docling::convertFromUrl(
'https://arxiv.org/pdf/2501.17887',
ConvertOptions::make()->toFormats(['md'])->doOcr(true)
);
echo $result->markdown();