PHP code example of avoutic / web-framework-browserless
1. Go to this page and download the library: Download avoutic/web-framework-browserless 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/ */
avoutic / web-framework-browserless example snippets
return [
'local_server' => 'http://your-local-server',
'pdf_endpoint' => 'https://your-browserless-instance/pdf',
'token' => 'your-browserless-token'
];
$browserless->outputPdf('/path/to/page', 'output.pdf');
// or
$stream = $browserless->outputStream('/path/to/page');