{"repo":"spiritix/php-chrome-html2pdf","free":true,"listed":false,"github":"https://github.com/spiritix/php-chrome-html2pdf","clone":"git clone https://github.com/spiritix/php-chrome-html2pdf.git","description":"A PHP library for converting HTML to PDF using Google Chrome","language":"PHP","stars":150,"topics":["php","pdf","html2pdf","htmltopdf","pdf-converter","puppeteer","puppeteer-pdf"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"PHP Chrome HTML to PDF A PHP library for converting HTML to PDF using Chrome/Chromium. Contributors wanted! Have a look at the open issues and send me an email if you are interested in a quick introduction via Hangouts. How it works This library is based on puppeteer, a headless Chrome Node API which is maintained by the Chrome DevTools team. It provides a simple PHP wrapper around the Node API, focused on generating beautiful PDF files. In contrast to other HTML to PDF converters like wkhtmltopdf, the corresponding PHP wrapper or similar libraries, it is based on a current Chrome version instead of outdated and unmaintained WebKit builds. This library therefore fully supports CSS3, HTML5, SVGs, SPAs, and all the other fancy stuff people use these days. Requirements - PHP 8.1+ with enabled program execution functions (proc open) and 'fopen wrappers' - Node.js 18+ (for older Node.js versions use see changelog) - A few OS specific dependencies Installation PHP Chrome HTML to PDF can be installed via Composer by requiring the spiritix/php-chrome-html2pdf package in your project's composer.json . Or simply run this command: The required JS packages are installed automatically in the background. Usage Using this library is pretty straight forward. Decide for an input and an output handler, pass them to the converter, set some options if you like and depending on the output handler, proceed with the generated PDF file. Input handlers The following input handlers are available: - St","default_branch":null,"files":null,"tree":[],"storefront":"/r/spiritix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spiritix/php-chrome-html2pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}