Download the PHP package ycchuang99/laravel-pdf-chrome-driver without Composer

On this page you can find all versions of the php package ycchuang99/laravel-pdf-chrome-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-pdf-chrome-driver

Chrome PHP Driver for spatie/laravel-pdf

[!WARNING] This package is abandoned and no longer maintained. Please use spatie/laravel-pdf instead.

A chrome-php/chrome driver for spatie/laravel-pdf.

This package provides a PDF generation driver that uses chrome-php/chrome (a PHP library for headless Chrome) instead of Browsershot. No Node.js required — pure PHP communication with Chrome via the DevTools Protocol.

Requirements

Version Compatibility

Package Version PHP spatie/laravel-pdf chrome-php/chrome
1.x ^8.2 ^2.0 ^1.0

Installation

The service provider is auto-discovered by Laravel.

Configuration

Set the driver in your .env file:

Available Configuration Options

Add to your config/laravel-pdf.php:

Environment Variables

Variable Description Default
LARAVEL_PDF_DRIVER Set to chrome-php to use this driver browsershot
LARAVEL_PDF_CHROME_PATH Path to Chrome/Chromium binary Auto-detected
LARAVEL_PDF_NO_SANDBOX Disable sandbox (required in Docker) false
LARAVEL_PDF_TIMEOUT Timeout in milliseconds 30000
LARAVEL_PDF_STARTUP_TIMEOUT Chrome startup timeout in seconds 30
LARAVEL_PDF_IGNORE_CERT_ERRORS Ignore SSL certificate errors false
LARAVEL_PDF_SEND_SYNC_DEFAULT_TIMEOUT Default timeout (ms) for synchronous CDP messages null (library default: 5000)

Usage

Works exactly like spatie/laravel-pdf — just change the driver:

Docker / CI Usage

When running in Docker or CI environments, enable no-sandbox mode and add the recommended Chrome flags:

Or via environment variables (for no_sandbox only):

Variable Value Purpose
no_sandbox true Disables Chrome's sandbox for compatibility with Docker/CI.
HOME /tmp Sets a writable home directory for Chrome in restricted environments.
XDG_CONFIG_HOME /tmp/.config Sets a writable config directory to avoid permission errors.

Testing

See CONTRIBUTING.md for instructions on running the test suite, coverage, and other QA targets.

License

MIT License. See LICENSE for details.


All versions of laravel-pdf-chrome-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
chrome-php/chrome Version ^1.0
spatie/laravel-pdf Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ycchuang99/laravel-pdf-chrome-driver contains the following files

Loading the files please wait ...