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
File Downloader Bundle

File Downloader Bundle Laravel Package

nzo/file-downloader-bundle

nzo/file-downloader-bundle is a Symfony bundle that simplifies serving file downloads. Stream files as HTTP responses, set filenames and content types, and return attachment or inline downloads without boilerplate.

View on GitHub
Deep Wiki
Context7

nzo/file-downloader-bundle is a lightweight Symfony bundle that streamlines downloading files from remote sources. It registers a configurable downloader service with the dependency injection container, letting you fetch and store files with minimal boilerplate.

The bundle ships with sensible defaults while remaining flexible for custom workflows. Adjust timeouts, destination paths, and streaming behavior through standard Symfony configuration.

  • Service-based API for downloading remote files
  • Native Symfony DI integration and configuration
  • Streaming support for large files
  • Customizable timeouts and destination paths
  • Simple, extendable architecture
Frequently asked questions about File Downloader Bundle
Is nzo/file-downloader-bundle a Laravel package or a Symfony bundle?
It is a Symfony bundle, not a Laravel package. It registers through Symfony's kernel and bundles.php mechanism and depends on the Symfony DI container, HTTP foundation, and event system. Laravel has no bundle concept, so Laravel compatibility is unproven and would require a thin adapter.
Can I install nzo/file-downloader-bundle in a Laravel app?
You can run composer require nzo/file-downloader-bundle, but installation alone will not wire it into Laravel. You would need a service provider that manually constructs the downloader service and maps any configuration. The TPM assessment rates this integration as medium-low feasibility because the wiring cost is high relative to the small response-building concern it solves.
Why doesn't Laravel auto-discover this Symfony bundle?
Laravel has no bundle registration contract, no bundles.php file, and its service container does not read Symfony bundle configuration. Laravel only shares individual Symfony components such as http-foundation and console at pinned majors. A Symfony bundle therefore gets no auto-discovery and no configuration loading in a Laravel app.
What Laravel-native alternatives replace this package?
Laravel's response()->download(), response()->file(), Storage::download(), and streamed responses already cover common download workflows including Content-Disposition and streaming large files. These primitives are idiomatic, tested, and have far less surface area. In most Laravel apps they make the bundle unnecessary.
Does nzo/file-downloader-bundle protect against path traversal and header injection?
That cannot be verified from package metadata; a file downloader is security-sensitive and needs a code audit. Check path canonicalization for .. and symlink traversal, allow-listing of downloadable roots, filename handling to prevent header injection, and safe Content-Type for inline display since inline HTML from your origin is stored XSS. Also confirm these protections have tests.
Does nzo/file-downloader-bundle stream large files or read them into memory?
The metadata does not confirm whether the bundle uses streaming BinaryFileResponse-style semantics or reads whole files into memory. Streaming matters for large downloads and memory limits, so inspect the implementation before production use. If it loads files fully into memory, treat that as a blocking risk.
Will the bundle's Symfony version constraints conflict with Laravel's dependencies?
Yes, that is a real risk. The bundle's composer.json constrains symfony/http-foundation and symfony/framework-bundle, and Laravel pulls the same Symfony components at pinned majors. A conflict can block installation or force downgrades elsewhere, so check constraints before committing.
Is nzo/file-downloader-bundle actively maintained and production-ready?
Signals are weak: 8 stars, 0 dependents, a single vendor (NAYZO), and a single release dated 2024-10-08. There is no evidence of production traffic or framework upgrade survival. Treat maintenance continuity as unguaranteed and plan for the bus factor.
What license does nzo/file-downloader-bundle use, and can I fork it if maintenance stops?
The provided context does not confirm the license, so check the LICENSE file in the repository before adopting or forking. If it is MIT, forking is favorable because the functional surface is small. Because the bundle is single-vendor, having a fork path is worth confirming up front.
Should I use this bundle or write my own file download endpoint in Laravel?
For a Laravel app, prefer native response()->download() or response()->file() unless you specifically need a documented service interface from the bundle. Writing the endpoint yourself is roughly 100 to 200 lines and keeps traversal, MIME, and streaming logic under your control. Adopting the bundle is mainly reasonable if you already run Symfony or plan to build a proper Laravel adapter.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager