PHP code example of sawirricardo / laravel-api2pdf
1. Go to this page and download the library: Download sawirricardo/laravel-api2pdf 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/ */
sawirricardo / laravel-api2pdf example snippets
return [
'api_key'=> env('API2PDF_API_KEY'),
];
// @see https://github.com/Api2Pdf/api2pdf.php
$result = api2pdf()->chromeHtmlToPdf('<p>Hello, World</p>');
echo $result->getFile();
bash
php artisan vendor:publish --tag="laravel-api2pdf-config"