{"id":19210644,"url":"https://github.com/mhndev/slim-file-response","last_synced_at":"2026-04-02T18:45:11.968Z","repository":{"id":52223181,"uuid":"61815194","full_name":"mhndev/slim-file-response","owner":"mhndev","description":"Slim File Response","archived":false,"fork":false,"pushed_at":"2021-05-04T15:54:29.000Z","size":3,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-08-21T00:32:44.025Z","etag":null,"topics":["file-response","http-response","slim","slim3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhndev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-23T15:16:16.000Z","updated_at":"2023-08-19T13:35:11.000Z","dependencies_parsed_at":"2022-09-11T09:50:13.648Z","dependency_job_id":null,"html_url":"https://github.com/mhndev/slim-file-response","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mhndev/slim-file-response","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fslim-file-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fslim-file-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fslim-file-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fslim-file-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhndev","download_url":"https://codeload.github.com/mhndev/slim-file-response/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhndev%2Fslim-file-response/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-response","http-response","slim","slim3"],"created_at":"2024-11-09T13:36:42.133Z","updated_at":"2026-04-02T18:45:11.943Z","avatar_url":"https://github.com/mhndev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple Slim Framework File Response\n\nusing this package you can simply make http file response.\nso what FileResponse class does is, set needed http headers for file response\nand also getResponse method has an optional third parameter which you can provide when you want http client\nsave file as a name other than the name which stored on server.\n\n## Sample usage\n\n```php\n\n$app-\u003eget('/test/image',function($request, $response){\n\n    $filePath = '/path/to/your/image/file';\n\n    return mhndev\\slimFileResponse\\FileResponse::getResponse($response, $filePath);\n});\n\n\n\n$app-\u003eget('/test/pdf',function($request, $response){\n\n    $filePath = '/path/to/your/pdf/file';\n\n    return mhndev\\slimFileResponse\\FileResponse::getResponse($response, $filePath ,'myDocument');\n});\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fslim-file-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhndev%2Fslim-file-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhndev%2Fslim-file-response/lists"}