filipsedivy / php-download-file
PHP class for download files
Installs: 314
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/filipsedivy/php-download-file
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);