NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1084 most downloaded on Packagist
A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!
Latest stable
v3.4.0
Last release 9 days ago
13 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 53 of 55 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
55 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
This release supports the new features of Gotenberg 9.5.0.
This release supports the new features of Gotenberg 9.5.0.
See https://github.com/gotenberg/gotenberg/releases/tag/v9.5.0 for more details.
PaperSize::A0, PaperSize::A1 and PaperSize::A2, for paperSize() on the Chromium and LibreOffice modules and Stage::compose.This release supports the new features of Gotenberg 9.4.0.
This release supports the new features of Gotenberg 9.4.0.
See https://github.com/gotenberg/gotenberg/releases/tag/v9.4.0 for more details.
Stage::stampText(..., position: StampPosition::Center), and the same position on Stage::stampImage and Stage::stampPdf: place the stamp against the center, an edge or a corner of each page, x and y then moving it from there. The StampPosition enum lists the positions.Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release supports the new features of Gotenberg 9.2.0.
This release supports the new features of Gotenberg 9.2.0.
See https://github.com/gotenberg/gotenberg/releases/tag/v9.2.0 for more details.
Stage::compose($placements, $paperSize, $paperWidth, $paperHeight): draw pages of the PDFs on new pages of the size you choose.new DownloadFrom($url, filename: ...): name the downloaded file when neither the server nor the URL path does.Page selections take Gotenberg 9.2.0's exclusions and open ranges, such as !1 or 3-, as they are.
This release supports the new stages of Gotenberg 9.1.0.
This release supports the new stages of Gotenberg 9.1.0.
See https://github.com/gotenberg/gotenberg/releases/tag/v9.1.0 for more details.
Stage::extractAttachments(?string $name): extract the files a PDF embeds, every one or the one named.Stage::extractText($pages, $invisible, $artifacts, $annotations): extract the text of a PDF as a .txt file.Both run alone with Gotenberg::pdf($apiUrl)->run(...), or last in stages(...).
The deprecated trace() and getGotenbergTrace() are removed: use correlationId() and getCorrelationId() .
This release brings the client up-to-date with the Gotenberg 9 version.
See https://github.com/gotenberg/gotenberg/releases/tag/v9.0.0 for more details.
Gotenberg::pdfEngines() becomes Gotenberg::pdf(): each route is a stage, run with run() or stages()->pipe().merge(), split(), pdfa(), pdfua(), metadata(), flatten(), encrypt(), allow*(), facturX(), embeds(), optimizeImages(), watermarking(), stamping(), rotating()) become stages. SplitMode, FacturX and EmbedMetadata give way to Stage.native prefix: nativePages(), nativeBookmarks(), nativeTaggedPdf(), nativePdfa(), nativePdfua(), nativeQuality(), nativeWatermark*(), and so on. paperSize() takes a PaperSize, paperDimensions() the width and height.webhook() takes the events URL, which Gotenberg requires; the error webhook is gone.downloadFrom(), cookies() and the failOn*() methods are variadic, emulatedMediaFeatures() takes an array.Stream exposes filename and stream as readonly properties.Profile, PaperSize, SameSite, WebhookMethod…). FacturX::CONFORMANCE_* becomes FacturXLevel, EmbedMetadata::RELATIONSHIP_* becomes Relationship. nativePdfua() takes no argument: LibreOffice only writes PDF/UA-1.JsonException.trace() and getGotenbergTrace() are removed: use correlationId() and getCorrelationId().$chromium->pdf()/->stages(...) and $libreOffice->stages(...): run a list of stages, in order, on the PDFs a conversion makes. Stage has a named constructor per Gotenberg stage: merge, split, select, stampText, stampImage, remediate, sign, optimize, and so on. A stage that reads a file takes a Stream, which the client uploads for you.Gotenberg::pdf($apiUrl)->stages(...)->pipe(...): run a list of stages on the PDFs you upload, through /forms/pdf/pipe.Gotenberg::pdf($apiUrl)->run(Stage::..., ...): run one stage through its own route, /forms/pdf/merge, /forms/pdf/sign, and so on.Gotenberg::pdf($apiUrl)->info(), ->metadata(), ->bookmarks(), ->attachments(), ->form() and ->validate(): read PDFs, one JSON entry per PDF. ->password() opens encrypted ones.This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->failOnConsoleMessageTypes (PDF and screenshot)pdfa now accepts PDF/A-4 with Gotenberg 8.39.0.
See https://github.com/gotenberg/gotenberg/releases/tag/v8.39.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$libreoffice->generateTaggedPdfSee https://github.com/gotenberg/gotenberg/releases/tag/v8.38.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
->optimizeImages (Chromium, LibreOffice, PDF Engines)$chromium->screenshot->selector$pdfengines->optimize$pdfengines->titleBookmarks$pdfengines->stamps$pdfengines->watermarksstamping and watermarking (Chromium, LibreOffice, PDF Engines) now accept an image or PDF file source and can be called repeatedly to apply multiple stamps or watermarks.
See https://github.com/gotenberg/gotenberg/releases/tag/v8.36.0 for more details.
Adds support for the PSR-7 package's 3.0 release. Thanks @mbabker !
Adds support for the PSR-7 package's 3.0 release. Thanks @mbabker!
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New class:
Gotenberg\FacturXNew methods:
$chromium->pdf->facturX$libreoffice->facturX$pdfengines->facturX$pdfengines->injectFacturX->allowPrinting (Chromium, LibreOffice, PDF Engines)->allowCopying (Chromium, LibreOffice, PDF Engines)->allowModifying (Chromium, LibreOffice, PDF Engines)->allowAnnotating (Chromium, LibreOffice, PDF Engines)->allowFillingForms (Chromium, LibreOffice, PDF Engines)->allowAssembling (Chromium, LibreOffice, PDF Engines)See https://github.com/gotenberg/gotenberg/releases/tag/v8.34.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->screenshot->deviceScaleFactorSee https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->embedsMetadata$libreoffice->embedsMetadata$pdfengines->embedsMetadataSee https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 for more details.
public function webhook(string $url, string $errorUrl = '') => $errorUrl is now optional and deprecated.
This release brings the client up-to-date with the latest Gotenberg version.
Deprecations:
public function webhook(string $url, string $errorUrl = '') => $errorUrl is now optional and deprecated.See https://github.com/gotenberg/gotenberg/releases/tag/v8.30.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->skipNetworkAlmostIdleEvent$libreOffice->initialView$libreOffice->initialPage$libreOffice->magnification$libreOffice->zoom$libreOffice->pageLayout$libreOffice->firstPageOnLeft$libreOffice->resizeWindowToInitialPage$libreOffice->centerWindow$libreOffice->openInFullScreenMode$libreOffice->displayPDFDocumentTitle$libreOffice->hideViewerMenubar$libreOffice->hideViewerToolbar$libreOffice->hideViewerWindowControls$libreOffice->useTransitionEffects$libreOffice->openBookmarkLevels->webhookEventsUrl (all modules)->correlationId (all modules)$gotenbergApiErrored->getCorrelationIdDeprecations:
->trace — use ->correlationId instead$gotenbergApiErrored->getGotenbergTrace — use ->getCorrelationId insteadSee https://github.com/gotenberg/gotenberg/releases/tag/v8.29.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$libreOffice->nativeWatermarkText$libreOffice->nativeWatermarkColor$libreOffice->nativeWatermarkFontHeight$libreOffice->nativeWatermarkRotateAngle$libreOffice->nativeWatermarkFontName$libreOffice->nativeTiledWatermarkText$pdfEngines->bookmarks$pdfEngines->autoIndexBookmarks$pdfEngines->watermark$pdfEngines->stamp$pdfEngines->rotate$pdfEngines->readBookmarks$pdfEngines->writeBookmarks$chromium->watermarking / $chromium->watermarkFile$chromium->stamping / $chromium->stampFile$chromium->rotatingSee https://github.com/gotenberg/gotenberg/releases/tag/v8.28.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->emulatedMediaFeaturesSee https://github.com/gotenberg/gotenberg/releases/tag/v8.27.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium->waitForSelector$chromium->ignoreResourceHttpStatusDomainsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.26.0 for more details.
This release brings PHP 8.5 support.
This release brings PHP 8.5 support.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->encrypt$pdfEngines->encrypting$libreOffice->encrypt$chromium->encrypt$pdfEngines->embed$pdfEngines->embeds$libreOffice->embeds$chromium->embedsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.25.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->generateTaggedPdfSee https://github.com/gotenberg/gotenberg/releases/tag/v8.21.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$libreoffice->updateIndexesSee https://github.com/gotenberg/gotenberg/releases/tag/v8.18.0 for more details.
This release fixes the skipNetworkIdleEvent when setting its argument to false. Thanks @Tugzrida!
This release fixes the skipNetworkIdleEvent when setting its argument to false. Thanks @Tugzrida!
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->flatten$pdfEngines->flattening$libreOffice->flattenSee https://github.com/gotenberg/gotenberg/releases/tag/v8.16.0 for more details.
This release reduces the package size by ignoring non mandatory files and folders. Thanks @pieterocp!
This release reduces the package size by ignoring non mandatory files and folders. Thanks @pieterocp!
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$pdfEngines->split$chromium->pdf()->split$libreOffice->splitSee https://github.com/gotenberg/gotenberg/releases/tag/v8.15.0 for more details.
This release brings PHP 8.4 support.
This release brings PHP 8.4 support.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New method:
$chromium->pdf()->generateDocumentOutlineSee https://github.com/gotenberg/gotenberg/releases/tag/v8.14.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
New methods:
$chromium-> failOnResourceHttpStatusCodes$chromium-> failOnResourceLoadingFailedSee https://github.com/gotenberg/gotenberg/releases/tag/v8.13.0 for more details.
This release brings the client up-to-date with the latest Gotenberg version.
This release brings the client up-to-date with the latest Gotenberg version.
Updated method:
$chromium->skipNetworkIdleEvent() => $chromium->skipNetworkIdleEvent($skip) (optional parameter).See https://github.com/gotenberg/gotenberg/releases/tag/v8.11.0 for more details.
All Stream arguments (e.g., form files) are now non-mandatory, as files may be downloaded by Gotenberg directly using the downloadFrom form field.
All Stream arguments (e.g., form files) are now non-mandatory, as files may be downloaded by Gotenberg directly using the downloadFrom form field.
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$libreOffice->downloadFrom$chromium->downloadFrom$pdfEngines->downloadFrom$libreOffice->passwordSee https://github.com/gotenberg/gotenberg/releases/tag/v8.10.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$libreOffice->allowDuplicateFieldNames$libreOffice->exportBookmarks$libreOffice->exportBookmarksToPdfDestination$libreOffice->exportPlaceholders$libreOffice->exportNotes$libreOffice->exportOnlyNotesPages$libreOffice->exportNotesInMargin$libreOffice->convertOooTargetToPdfTarget$libreOffice->exportLinksRelativeFsys$libreOffice->exportHiddenSlides$libreOffice->skipEmptyPages$libreOffice->addOriginalDocumentAsStream$libreOffice->quality$libreOffice->maxImageResolutionSee https://github.com/gotenberg/gotenberg/releases/tag/v8.8.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->userAgent$libreOffice->losslessImageCompression$libreOffice->reduceImageResolutionSee https://github.com/gotenberg/gotenberg/releases/tag/v8.7.0 for more details.
Also, you can now pass only one argument to $pdfEngines->merge, thanks @mariusjp!
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->width$chromium->height$chromium->clipSee https://github.com/gotenberg/gotenberg/releases/tag/v8.5.0 for more details.
ChromiumCookie does not serialize *null* for optional values anymore. Thanks a lot @yanbuatois for the quick fix!
ChromiumCookie does not serialize null for optional values anymore. Thanks a lot @yanbuatois for the quick fix!
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->cookies$libreOffice->singlePageSheetsSee https://github.com/gotenberg/gotenberg/releases/tag/v8.4.0 for more details.
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->metadata$libreOffice->metadata$libreOffice->exportFormFields$pdfEngines->metadata$pdfEngines->readMetadata$pdfEngines->writeMetadataSee https://github.com/gotenberg/gotenberg/releases/tag/v8.3.0 for more details.
This release adds the method singlePage to Chromium PDF conversions, which defines whether to print the entire content in one single page.
This release adds the method singlePage to Chromium PDF conversions, which defines whether to print the entire content in one single page.
This release brings the client up-to-date with the Gotenberg 8 version.
This release brings the client up-to-date with the Gotenberg 8 version.
See https://github.com/gotenberg/gotenberg/releases/tag/v8.0.0 for more details.
GotenbergApiErroed exception has been renamed GotenbergApiErrored - thanks @marlonbasten!NativeFunctionErroed exception has been renamed NativeFunctionErrored - thanks @marlonbasten!Gotenberg::chromium($apiUrl)->pdf()->... and Gotenberg::chromium($apiUrl)->screenshot()->...$chromium->screenshot()->url(...)$chromium->screenshot()->html(...)$chromium->screenshot()->markdown(...)$chromium->screenshot()->png()->optimizeForSpeed()->..., $chromium->screenshot()->jpeg()->quality(100)->..., $chromium->screenshot()->webp()->....$chromium->pdf()/->screenshot()->failOnHttpStatusCodes(...)->...: force Gotenberg to return a 409 Conflict response if the HTTP status code from the main page is not acceptable.$chromium->pdf()/->screenshot()->skipNetworkIdleEvent()->...: do not wait for Chromium network to be idle, allowing for faster conversions - thanks @rreynier!This release makes the method formValue public - thanks @rreynier!
This release makes the method formValue public - thanks @rreynier!
This release brings the client up-to-date with the lastest Gotenberg version.
This release brings the client up-to-date with the lastest Gotenberg version.
New methods:
$chromium->pdfa$chromium->pdfua$libreOffice->pdfa$libreOffice->pdfua$pdfEngines->pdfa$pdfEngines->pdfuaDeprecated classes/methods:
$chromium->userAgent$chromium->pdfFormatChromiumExtraLinkTagChromiumExtraScriptTag$libreOffice->nativePdfFormat$libreOffice->pdfFormat$pdfEngines->pdfFormatSee https://github.com/gotenberg/gotenberg/releases/tag/v7.10.0 for more details.
Nothing published for this version
The version constraint for psr/http-message dependency in composer.json has been expanded to include version 2.0. This change will ensure compatibilit
The version constraint for psr/http-message dependency in composer.json has been expanded to include version 2.0. This change will ensure compatibility with projects that require this newer version. Thanks @dontfreakout!
This releases adds compatibility for earlier versions of guzzlehttp/psr7. Thanks @AlexSkrypnyk!
This releases adds compatibility for earlier versions of guzzlehttp/psr7. Thanks @AlexSkrypnyk!
This release updates links to the documentation in the PHP doc.
This release updates links to the documentation in the PHP doc.
When merging more than 26 files, the order in the resulting PDF was wrong (see https://github.com/gotenberg/gotenberg-php/issues/21). This release pro
When merging more than 26 files, the order in the resulting PDF was wrong (see https://github.com/gotenberg/gotenberg-php/issues/21). This release provide a fix for such a scenario. Thanks @craigh!
Nothing published for this version
Adds new method omitBackground() to the Chromium module.
Adds new method omitBackground() to the Chromium module.
When merging more than 10 files, the order in the resulting PDF was wrong (see #9). This release provide a fix for such a scenario.
When merging more than 10 files, the order in the resulting PDF was wrong (see #9). This release provide a fix for such a scenario.
Please note there are small breaking changes compared to v0.1.4 regarding the ChromiumExtraLinkTag and ChromiumExtraScriptTag classes:
First stable release, with new features from Gotenberg 7.5.0.
Please note there are small breaking changes compared to v0.1.4 regarding the ChromiumExtraLinkTag and ChromiumExtraScriptTag classes:
ChromiumExtraLinkTag::url($myUrl)ChromiumExtraLinkTag::stream($myStream)new ChromiumExtraLinkTag($href)ChromiumExtraScriptTag::url($myUrl)ChromiumExtraScriptTag::stream($myStream)new ChromiumExtraScriptTag($src)Using variadic array indexes was causing an issue if indexes were not integer (see #6). This release provide a fix for such a scenario.
Using variadic array indexes was causing an issue if indexes were not integer (see #6). This release provide a fix for such a scenario.
Stream::path now takes an optional $filename argument (see #5).
Stream::path now takes an optional $filename argument (see #5).
This release removes the composer.lock file.
This release removes the composer.lock file.
This new release fixes #1; Gotenberg::send and Gotenberg::save methods do not throw a GotenbergApiErroed exception anymore if the status code is in th
This new release fixes #1; Gotenberg::send and Gotenberg::save methods do not throw a GotenbergApiErroed exception anymore if the status code is in the 2xx range.
The GotenbergApiErroed exception also provides a method to access the response, i.e., $e->getResponse().
Very first release of the Gotenberg PHP client.
Very first release of the Gotenberg PHP client.
It supports Gotenberg 7.x up to 7.3.0.
One column per quarter.