athlon1600/php-curl-file-downloader
Download remote files in PHP using cURL with a simple, lightweight wrapper. Supports saving to disk, streaming, progress callbacks, custom headers/options, redirects and timeouts—handy for CLIs or apps that need reliable file downloads.
.mp4 vs .webm variants)..mp4 → .webm for WebP support).Adopt if:
Look elsewhere if:
video.mp4).For Executives:
"This package solves a hidden friction point in media-heavy apps: guessing filenames from raw URLs (e.g., YouTube streams). By automatically appending .mp4 or .webm based on HTTP headers, we eliminate manual workarounds, reduce storage costs from duplicate files, and accelerate feature development. For example, our video platform could save X hours/month in QA time and Y% in storage costs by standardizing this logic. It’s a low-risk, high-reward lever for scalability."
For Engineering: *"This is a drop-in solution for filename inference in Laravel. Key benefits:
.mp4/.webm from headers (e.g., Content-Type) when extensions are missing..webm for WebP support).
Use case: Plug into your Storage::put() calls or media ingestion services. Example:*$filename = FilenameGuesser::guess('https://r3---sn-vgqsrnes.googlevideo.com/videoplayback');
// Returns 'videoplayback.mp4' (vs. old 'videoplayback').
```"
**Ask**: Should we prioritize this for [Media Pipeline] or [Feature X]?"*
How can I help you explore Laravel packages today?