PHP code example of steinbauerit / neos-headlesschrome

1. Go to this page and download the library: Download steinbauerit/neos-headlesschrome library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

steinbauerit / neos-headlesschrome example snippets


use SteinbauerIT\Neos\HeadlessChrome\Print2Pdf;

$print2Pdf = new Print2Pdf();
$print2Pdf->setSource($source);
$print2Pdf->setTargetDirectory($targetPath);
$print2Pdf->setAttributes(
    ['foo', 'bar']
);
$result = $print2Pdf->execute(); // Path to the printed PDF


which chromium-browser