salva/pdfjs-bundle
Salva PDF.js Bundle integrates Mozilla PDF.js into Symfony applications, providing Twig helpers, configurable viewer assets, and a simple way to embed browser-based PDF rendering without plugins or external services. Ideal for displaying PDF documents inline.
salva/pdfjs-bundle is a Symfony2 bundle, not a Laravel package. It assumes Symfony DI container, bundle registration, Twig/templating conventions, and Symfony asset handling. Requiring it via Composer would not expose Laravel service providers, facades, config publishing, Blade directives, or route/view integration.pdf.js front-end integration, which can be replicated in Laravel through static assets, npm/Vite, and Blade views. The Symfony wrapper itself adds little reusable PHP value.pdf.js version. Risk areas include outdated PDF rendering/security behavior, incompatible Symfony APIs, missing PHP 8 compatibility, obsolete front-end APIs, no active maintenance, and unclear worker/CSP configuration.pdf.js version and browser/security requirements are acceptable?pdf.js integration using npm/Vite, a Blade component, and Laravel routes/controllers for authorized PDF delivery.pdf.js viewer pattern, then rebuild it natively in Laravel with maintained pdf.js assets.pdf.js version before any spike. Expect the Composer package to be installable but functionally unused in Laravel.pdf.js.pdf.js viewer with a Laravel-authenticated PDF endpoint.pdf.js distribution and document the custom integration.pdf.js integration is simpler to maintain because upgrades are explicit and front-end tooling is standard.pdf.js; operational scaling depends on static asset delivery, CDN caching, document storage, auth checks, and worker configuration. Those should be designed in Laravel rather than inherited from the bundle.pdf.js worker paths, CSP blocking workers or blob URLs, CORS failures for PDF fetches, asset publishing mismatch, authentication bypass in document endpoints, and browser incompatibility due to old viewer APIs.pdf.js and Laravel front-end tooling; misleading for teams expecting a drop-in Laravel package. Estimate a small spike to reproduce the viewer in Blade/Vite, plus security and auth review. The Symfony bundle itself should not be part of the ramp-up plan.How can I help you explore Laravel packages today?