Appearance
Quick start with PHP
Looking for a wkhtmltopdf alternative? This guide shows how to send your first request using PHP.
❶ Prerequisites
To get the most out of this guide, you’ll need to sign up for Doppio.
Go to the dashboard and copy the API key of your organization, under API key. Every member of the organization uses the same key, and each render made with it counts in the quota of the organization. The free plan is free forever.


❷ Send a request
Render PDF
Your first PDF is ready.
Synchronous
The synchronous method returns a JSON response that includes fields such as documentUrl. Use it when you want to store the generated file URL or process it further in your application.
Direct
The direct method streams the PDF back to the client as a file download. Use it when the user should receive the generated PDF immediately.
Asynchronous processing
If your project needs webhook-based response handling, see our asynchronous approach. It is a good fit for bulk document processing, background jobs, and workflows where the user should not have to wait for the render to complete.
PHP frameworks?
Looking for a specific framework? Check out our quick starts by category.