filipsedivy / php-download-file
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP class for download files
v1.0
2015-10-31 22:04 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2020-01-27 04:52:34 UTC
README
Exensions for file downloads
What is needed
Server when support PHP files
How to install
Copy DownloadFile.php to anywhere
How to use
Easy to use
$downloadFile = new \FS\DownloadFile; $downloadFile->download('data/file.exe');
Advanced settings
$filePath = 'data/file.exe'; $fileName = 'install.exe'; $contentType = 'application/octet-stream'; $downloadFile = new \FS\DownloadFile; $downloadFile->speed(10); // 10 kb/s $downloadFile->download($filePath, $fileName, $contentType);