PHP SDKFramework agnostic
BladePDF for PHP
The bladepdf/php package is the framework-agnostic rendering core. Use it in plain PHP, Symfony, Slim, Laminas, or any application that can produce an HTML string.
Install
Terminal
bash 1composer require bladepdf/phpWhat is in the core
| Component | Responsibility |
|---|---|
BladePdf and PendingRender | HTML and cloud-template sources, PDF options, readiness, metadata, storage, webhooks, and sync/async submission. |
BladePdfClient | Multipart API transport, retry policy, typed failures, stored-PDF links, and request IDs. |
AssetResolver | Permission-scoped HTML and CSS discovery for local CSS, fonts, images, JavaScript, and SVG. |
RenderResult | PDF bytes, safe saving, base64 output, stored URL, and request ID. |
SignatureVerifier | Framework-independent webhook HMAC and timestamp verification. |
Relationship to Laravel
bladepdf/laravel:^2.0 depends on this package and adds only Laravel configuration, deferred Blade views, facade/service-container integration, response helpers, and an Illuminate request webhook wrapper. Laravel users should continue with the Laravel quickstart.
Next step
Continue with the PHP SDK quickstart, then allow only the asset roots your documents require.