Install
Install Canio from Packagist.
composer require oxhq/canio
php artisan canio:install
The install command publishes config, downloads the matching Stagehand binary, verifies checksums, and runs a local doctor check.
First render
use Oxhq\Canio\Facades\Canio;
return Canio::view('pdf.invoice', ['invoice' => $invoice])
->profile('invoice')
->title('Invoice #123')
->stream('invoice.pdf');
What happens by default
- Canio runs in
embeddedmode unless you configure otherwise. - The package auto-starts the local runtime on first render when needed.
- The Laravel-facing API stays native:
view(),html(), andurl().
Next steps
- Read the deployment guide before production rollout.
- Check the full package README for commands and operations.