Inkspan › Laravel
Call the Inkspan /v1/generate/template endpoint from Laravel to generate a PDF from a template — no headless browser, fonts, or PDF infrastructure to maintain. Set your API key as an environment variable and POST.
// PHP / Laravel
$res = Http::withHeaders(['X-API-Key' => env('INKSPAN_KEY')])
->post('https://api.inkspan.dev/v1/generate/template', {"template":"<h1>{{name}}</h1>","data":{"name":"Ada"}});
Storage::put('out.pdf', $res->body());
Get a free API key →