Download the PHP package devture/browserless without Composer
On this page you can find all versions of the php package devture/browserless. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devture/browserless
More information about devture/browserless
Files in devture/browserless
Package browserless
Short Description Library for communicating with the Browserless.io API (generating PDFs, etc.)
License BSD-3-Clause
Informations about the package browserless
Browserless
This is a library for interacting with the Browserless.io APIs.
For the time being, this library only supports these APIs:
-
/pdf - for generating PDFs from a URL or inline HTML (like wkhtmltopdf, but better -- more up-to-date browser engine, etc.)
- /workspace - for persisting (HTML and other) files into the Browserless workspace
Prerequisites
You either need to use your own self-hosted Browserless instance (see how to do it with Docker) or their hosted offering (see Pricing).
You could use the following docker-compose.yml
setup:
Usage
Creating a Browserless API client
Generating a PDF from a URL
Generating a PDF from inline HTML
Generating a PDF from a bunch of workspace-saved files
This requires Browserless running with ALLOW_FILE_PROTOCOL: "true"
(see the sample docker-compose.yml
file above).
Alternatives
-
the SynergiTech/chrome-pdf-php library can also render PDFs via Browserless
- wkhtmltopdf invoked via knplabs/knp-snappy
All versions of browserless with dependencies
guzzlehttp/guzzle Version >=6.3,<8.0
symfony/uid Version >=6.4.0,<8.0-dev