1. Go to this page and download the library: Download atik/atik-pdf 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/ */
atik / atik-pdf example snippets
use Atik\Pdf\Facades\AtikPdf;
return AtikPdf::view('invoices.standard', ['invoice' => $data])
->download('invoice_001.pdf');
AtikPdf::async($massiveRowArray, $columns, 'Massive Dataset')
->webhook('https://myapp.com/api/webhooks/pdf-ready')
->queue('reports/massive_report_august.pdf');
return response()->json(['message' => 'PDF is generating in the background!']);