github gotenberg/gotenberg-php v2.0.0

latest releases: v2.13.0, v2.12.1, v2.12.0...
14 months ago

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!

Don't miss a new gotenberg-php release

NewReleases is sending notifications on new releases.