1. Go to this page and download the library: Download mvlabs/mvlabs-snappy 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/ */
return [
'mvlabs-snappy' => [
'pdf' => [
'binary' => '/usr/local/bin/wkhtmltopdf',
'options' => [], // Type wkhtmltopdf -H to see the list of options
],
'image' => [
'binary' => '/usr/local/bin/wkhtmltoimage',
'options' => [], // Type wkhtmltoimage -H to see the list of options
]
]
];