Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pdfjs Viewer Bundle Laravel Package

steamulo/pdfjs-viewer-bundle

A PHP bundle that integrates the Mozilla PDF.js viewer into your application, letting you render PDF files directly in the browser without plugins, with configurable viewer options and straightforward template integration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Embedding PDF viewing without building a renderer: The core capability is serving Mozilla’s pdf.js viewer through server-side configuration (default file, viewer options, asset paths). That informs the build vs. buy question for any in-app document preview feature: the underlying pdf.js library is the real value; this package is thin integration glue.
  • Customer-facing document workflows: Supports roadmap bets around “view a generated PDF in the browser” (invoices, contracts, reports, statements) where the requirement is read-only display rather than annotation, e-signature, or editing.
  • Server-side viewer configuration as a product lever: Because parameters are customizable server-side, it validates the pattern of letting admins/tenants set defaults (initial page, zoom, toolbar visibility, language) without shipping new front-end code — useful input for a “configurable document viewer” feature spec.
  • Framework alignment decision: The package targets Symfony 4, not Laravel. This is a signal for a platform roadmap decision: if the estate is Laravel, adopting this pushes toward either a Symfony sidecar/service or a different integration, both of which carry cost that must be weighed against the trivial effort of wiring pdf.js directly.
  • Not a decision driver for anything strategic: With 0 stars, 0 dependents, and no release since January 2023, it should not factor into architecture or vendor strategy beyond a documented “considered and rejected / considered and forked” note.

When to Consider This Package

Consider it only when all of the following hold:

  • The application is Symfony 4 (or a closely compatible Symfony version) rather than Laravel — using it elsewhere means adapting bundle service definitions and config trees, which erodes its already-thin advantage.
  • The requirement is basic, read-only PDF rendering in the browser with a handful of server-controlled defaults.
  • The team has capacity to own the code: treat it as a fork/snapshot, pin the dependency, and be prepared to patch it, since maintenance signals are weak (single-digit stars, no dependents, last release over two years ago).
  • Licensing is acceptable — Apache-2.0 is permissive and compatible with commercial/proprietary products, with attribution obligations on the bundled pdf.js assets.

Look elsewhere when:

  • The stack is Laravel — prefer a maintained Laravel PDF viewer package, a lightweight Blade + pdf.js view, or a hosted viewer (e.g., a commercial document SDK) if the requirement grows.
  • You need annotation, form filling, redaction, text search at scale, accessibility conformance, or DRM/watermarking — pdf.js alone is a rendering engine, and this bundle adds little to those concerns.
  • Security and supply-chain posture matters: an unmaintained package is a standing risk for CVE patching in pdf.js itself; you would be inheriting that responsibility plus the wrapper’s.
  • You need performance guarantees for large documents (hundreds of pages, streaming, range requests) — the bundle’s server-side config surface does not address delivery architecture.

How to Pitch It (Stakeholders)

For executives: We evaluated a small open-source add-on that embeds Mozilla’s pdf.js document viewer into a PHP application. The viewer technology itself is mature, free, and widely trusted; the add-on, however, is effectively a solo-maintained wrapper with no measurable adoption and no updates since early 2023. Recommendation: do not adopt it as a dependency. If in-browser PDF viewing is on the roadmap, we can deliver it directly on top of pdf.js in roughly the same effort, keep full control, and avoid inheriting an unmaintained component. The license (Apache-2.0) is business-friendly, so there is no legal obstacle either way.

For engineering: The value here is pdf.js, not the bundle. The bundle’s contribution is Symfony 4 service wiring plus a server-side config tree for viewer defaults — a few hundred lines at most, and it does not match our Laravel stack. If we want the same ergonomics, the pragmatic path is: vendor pdf.js as a static asset, expose a small config endpoint or config file for per-tenant viewer defaults, and render in a Blade view or an isolated front-end component. That gives us upgrade control over pdf.js security patches, testability, and no third-party abandonment risk. If someone on the team wants the Symfony behavior as reference, treat the repository as read-only prior art — a design to copy, not a dependency to install.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log