library slim-file-response
Slim File Response
mhndev/slim-file-response
Slim File Response
- Thursday, February 23, 2017
- by majidphpdeveloper
- Repository
- 2 Watchers
- 7 Stars
- 747 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 4 Versions
- 12 % Grown
Simple Slim Framework File Response
using this package you can simply make http file response.
so what FileResponse class does is, set needed http headers for file response
and also getResponse method has an optional third parameter which you can provide when you want http client
save file as a name other than the name which stored on server., (*1)
Sample usage
$app->get('/test/image',function($request, $response){
$filePath = '/path/to/your/image/file';
return mhndev\slimFileResponse\FileResponse::getResponse($response, $filePath);
});
$app->get('/test/pdf',function($request, $response){
$filePath = '/path/to/your/pdf/file';
return mhndev\slimFileResponse\FileResponse::getResponse($response, $filePath ,'myDocument');
});
dev-master
9999999-dev
Slim File Response
Sources
Download
MIT
The Requires
file
http
response
slim
download
download file
php download
http-file-response
dev-develop
dev-develop
Slim File Response
Sources
Download
MIT
The Requires
file
http
response
slim
download
download file
php download
http-file-response
0.1.1
0.1.1.0
Slim File Response
Sources
Download
MIT
The Requires
file
http
response
slim
download
download file
php download
http-file-response
0.1.0
0.1.0.0
Slim File Response
Sources
Download
MIT
The Requires
file
http
response
slim
download
download file
php download
http-file-response