rndoom04/downloader

PHP simple file downloader - send file to download.

Maintainers

Package info

github.com/Rndoom04/PHP-downloader

pkg:composer/rndoom04/downloader

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1 2026-05-11 21:16 UTC

This package is not auto-updated.

Last update: 2026-05-11 21:18:41 UTC


README

A lightweight, robust PHP library for sending files to the browser as a download. It handles MIME types, output buffering, and memory management for you.

Features

  • Automatic MIME Type Detection: Uses the skyzyx/mimetypes component to correctly identify file types.
  • Buffer Management: Automatically clears all output buffers and disables compression to prevent corrupted binary downloads.
  • Resource Efficient: Uses file pointers and streams, making it suitable for serving large files without hitting memory limits.
  • Flexible Sources: Create downloads from existing files or directly from raw strings (e.g., dynamic CSV/logs).

Installation

Install the package via Composer:

composer require rndoom04/downloader