How Gotenberg PHP modules and requests work
mainThe library is organized into modules corresponding to Gotenberg API capabilities: chromium(), libreOffice(), and pdfEngines().
To build a request, you initialize a module with the $apiUrl, chain methods to populate the multipart/form-data request (such as setting files, URLs, or options), and finally call the method representing the specific endpoint (e.g., pdf(), screenshot(), or convert()).
use Gotenberg//
// Example of building a Chromium PDF request
$request = Gotenberg::chromium($apiUrl)
->pdf()
->singlePage()
->url('https://my.url');