{"repo":"DaanDeSmedt/PHPHeadlessChrome","free":true,"listed":false,"github":"https://github.com/DaanDeSmedt/PHPHeadlessChrome","clone":"git clone https://github.com/DaanDeSmedt/PHPHeadlessChrome.git","description":"A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.","language":"PHP","stars":93,"topics":["pdf","pdf-generation","headless-chrome","headless","chrome","php","url-to-pdf","url-to-image","html-to-pdf","html-to-image"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"PHPHeadlessChrome =============== Headless Chrome is shipping in Chrome 59. It's a way to run the Chrome browser in a headless environment. Essentially, running Chrome without chrome! It brings all modern web platform features provided by Chromium and the Blink rendering engine to the command line. PHPHeadlessChrome provides a simple usage helper class to create PDF and / or screenshots using a Headless Chrome instance. Trigger PDF / Screenshots generation for webpages / string HTML or local URL. In order to use this PHPHeadlessChrome helper make sure Google Chrome is correctly installer from version 59 or onwards. Installation Install the package through composer: Make sure, that you include the composer autoloader somewhere in your codebase. Usage Use the PHPHeadlessChrome tool when you want to convert a webpage / HTML text or (local) HTML file to a PDF or image screenshot. Working examples Working examples can be found in the examples folder. Webpage (URL) to PDF Webpage (URL) to Screenshot (image) HTML (String) to PDF HTML (String) to Screenshot (image) HTML local file to PDF HTML local file to Screenshot (image) HTML to DOM dump Set mobile mode Set window size Disable display of header and footer in the PDF print","default_branch":null,"files":null,"tree":[],"storefront":"/r/DaanDeSmedt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DaanDeSmedt/PHPHeadlessChrome/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."}