Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Gotenberg Php Laravel Package

gotenberg/gotenberg-php

PHP client for the Gotenberg API to convert documents to PDF using Chromium/LibreOffice. Build requests for URL, HTML, Markdown, and Office files, then stream or save outputs. Compatible with Gotenberg 8.x via client v2.x.

View on GitHub
Deep Wiki
Context7
v2.24.0

Adds support for the PSR-7 package's 3.0 release. Thanks @mbabker!

v2.23.0

This release brings the client up-to-date with the latest Gotenberg version.

New class:

  • Gotenberg\FacturX

New 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.

v2.22.0

This release brings the client up-to-date with the latest Gotenberg version.

New method:

  • $chromium->screenshot->deviceScaleFactor

See https://github.com/gotenberg/gotenberg/releases/tag/v8.33.0 for more details.

v2.21.0

This release brings the client up-to-date with the latest Gotenberg version.

New methods:

  • $chromium->embedsMetadata
  • $libreoffice->embedsMetadata
  • $pdfengines->embedsMetadata

See https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 for more details.

v2.20.0

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.

v2.19.0

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->getCorrelationId

Deprecations:

  • ->trace — use ->correlationId instead
  • $gotenbergApiErrored->getGotenbergTrace — use ->getCorrelationId instead

See https://github.com/gotenberg/gotenberg/releases/tag/v8.29.0 for more details.

v2.18.0

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->rotating

See https://github.com/gotenberg/gotenberg/releases/tag/v8.28.0 for more details.

v2.17.0

This release brings the client up-to-date with the latest Gotenberg version.

New method:

  • $chromium->emulatedMediaFeatures

See https://github.com/gotenberg/gotenberg/releases/tag/v8.27.0 for more details.

v2.16.0

This release brings the client up-to-date with the latest Gotenberg version.

New methods:

  • $chromium->waitForSelector
  • $chromium->ignoreResourceHttpStatusDomains

See https://github.com/gotenberg/gotenberg/releases/tag/v8.26.0 for more details.

v2.15.1

This release brings PHP 8.5 support.

v2.15.0

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->embeds

See https://github.com/gotenberg/gotenberg/releases/tag/v8.25.0 for more details.

v2.14.0

This release brings the client up-to-date with the latest Gotenberg version.

New method:

  • $chromium->generateTaggedPdf

See https://github.com/gotenberg/gotenberg/releases/tag/v8.21.0 for more details.

v2.13.0

This release brings the client up-to-date with the latest Gotenberg version.

New method:

  • $libreoffice->updateIndexes

See https://github.com/gotenberg/gotenberg/releases/tag/v8.18.0 for more details.

v2.12.1

This release fixes the skipNetworkIdleEvent when setting its argument to false. Thanks @Tugzrida!

v2.12.0

This release brings the client up-to-date with the latest Gotenberg version.

New methods:

  • $pdfEngines->flatten
  • $pdfEngines->flattening
  • $libreOffice->flatten

See https://github.com/gotenberg/gotenberg/releases/tag/v8.16.0 for more details.

v2.11.1

This release reduces the package size by ignoring non mandatory files and folders. Thanks @pieterocp!

v2.11.0

This release brings the client up-to-date with the latest Gotenberg version.

New methods:

  • $pdfEngines->split
  • $chromium->pdf()->split
  • $libreOffice->split

See https://github.com/gotenberg/gotenberg/releases/tag/v8.15.0 for more details.

v2.10.1

This release brings PHP 8.4 support.

v2.10.0

This release brings the client up-to-date with the latest Gotenberg version.

New method:

  • $chromium->pdf()->generateDocumentOutline

See https://github.com/gotenberg/gotenberg/releases/tag/v8.14.0 for more details.

v2.9.0

This release brings the client up-to-date with the latest Gotenberg version.

New methods:

  • $chromium-> failOnResourceHttpStatusCodes
  • $chromium-> failOnResourceLoadingFailed

See https://github.com/gotenberg/gotenberg/releases/tag/v8.13.0 for more details.

v2.8.0

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.

v2.7.1

All Stream arguments (e.g., form files) are now non-mandatory, as files may be downloaded by Gotenberg directly using the downloadFrom form field.

v2.7.0

This release brings the client up-to-date with the lastest Gotenberg version.

New methods:

  • $libreOffice->downloadFrom
  • $chromium->downloadFrom
  • $pdfEngines->downloadFrom
  • $libreOffice->password

See https://github.com/gotenberg/gotenberg/releases/tag/v8.10.0 for more details.

v2.6.0

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->maxImageResolution

See https://github.com/gotenberg/gotenberg/releases/tag/v8.8.0 for more details.

v2.5.0

This release brings the client up-to-date with the lastest Gotenberg version.

New methods:

  • $chromium->userAgent
  • $libreOffice->losslessImageCompression
  • $libreOffice->reduceImageResolution

See 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!

v2.4.0

This release brings the client up-to-date with the lastest Gotenberg version.

New methods:

  • $chromium->width
  • $chromium->height
  • $chromium->clip

See https://github.com/gotenberg/gotenberg/releases/tag/v8.5.0 for more details.

v2.3.1

ChromiumCookie does not serialize null for optional values anymore. Thanks a lot @yanbuatois for the quick fix!

v2.3.0

This release brings the client up-to-date with the lastest Gotenberg version.

New methods:

  • $chromium->cookies
  • $libreOffice->singlePageSheets

See https://github.com/gotenberg/gotenberg/releases/tag/v8.4.0 for more details.

v2.2.0

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->writeMetadata

See https://github.com/gotenberg/gotenberg/releases/tag/v8.3.0 for more details.

v2.1.0

This release adds the method singlePage to Chromium PDF conversions, which defines whether to print the entire content in one single page.

v2.0.0

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.

Breaking Changes

  • Minimum PHP version is now PHP 8.1.
  • GotenbergApiErroed exception has been renamed GotenbergApiErrored - thanks @marlonbasten!
  • NativeFunctionErroed exception has been renamed NativeFunctionErrored - thanks @marlonbasten!
  • The PDF / Screenshot features are now available via Gotenberg::chromium($apiUrl)->pdf()->... and Gotenberg::chromium($apiUrl)->screenshot()->...

New Chromium Methods

  • You can capture full-page screenshots using the following three methods, which function similarly to their PDF equivalents:
    • $chromium->screenshot()->url(...)
    • $chromium->screenshot()->html(...)
    • $chromium->screenshot()->markdown(...)
    • You may use the following new methods with them: $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!
v1.1.8

This release makes the method formValue public - thanks @rreynier!

v1.1.7

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->pdfua

Deprecated classes/methods:

  • $chromium->userAgent
  • $chromium->pdfFormat
  • ChromiumExtraLinkTag
  • ChromiumExtraScriptTag
  • $libreOffice->nativePdfFormat
  • $libreOffice->pdfFormat
  • $pdfEngines->pdfFormat

See https://github.com/gotenberg/gotenberg/releases/tag/v7.10.0 for more details.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
cadot.eu/make
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky