{"id":17369780,"url":"https://github.com/digilive/filestreamer","last_synced_at":"2025-09-13T14:46:41.100Z","repository":{"id":56968635,"uuid":"460426562","full_name":"DigiLive/fileStreamer","owner":"DigiLive","description":"Library for streaming files inline or as (resumable) download to a client.","archived":false,"fork":false,"pushed_at":"2022-10-02T20:39:38.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T14:04:48.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DigiLive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-17T12:29:56.000Z","updated_at":"2022-02-17T20:50:17.000Z","dependencies_parsed_at":"2022-08-21T10:50:36.785Z","dependency_job_id":null,"html_url":"https://github.com/DigiLive/fileStreamer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DigiLive/fileStreamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiLive%2FfileStreamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiLive%2FfileStreamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiLive%2FfileStreamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiLive%2FfileStreamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DigiLive","download_url":"https://codeload.github.com/DigiLive/fileStreamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DigiLive%2FfileStreamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274978941,"owners_count":25384759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-16T00:06:48.524Z","updated_at":"2025-09-13T14:46:41.075Z","avatar_url":"https://github.com/DigiLive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fileStreamer\n\n[![GitHub release](https://img.shields.io/github/v/release/DigiLive/fileStreamer?include_prereleases)](https://github.com/DigiLive/gitChangelog/releases)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\nThis library serves a file according to the headers which are sent with a http\nrequest. It supports resumable downloads or streaming the content of a file to a\nclient.\n\nIf you have any questions, comments or ideas concerning this library, please\nconsult the code documentation at first.\nCreate a new [issue](https://github.com/DigiLive/fileStreamer/issues/new) if\nyour concerns remain unanswered.\n\n## Features\n\n* Inline disposition.\n* Attachment disposition.\n* Serve a complete file.\n* Serve a single byte range of a file.\n* Serve multiple byte ranges of a file.\n* Set a custom mimetype.\n\n## Requirements\n\n* PHP ^7.4\n* ext-fileinfo *\n\n## Installation\n\nThe preferred method is to install the library\nwith [Composer](http://getcomposer.org).\n\n```sh\n\u003e composer require digilive/file-streamer:^1\n```\n\nSet the version constraint to a value which suits you best.  \nAlternatively you can download the latest release\nfrom [GitHub](https://github.com/DigiLive/fileStreamer/releases).\n\n## Example use\n\n```php\n\u003c?php\n\nuse DigiLive\\FileStreamer\\FileStreamer;\n\n// Use composer's auto loader.\n$requiredFile = 'Path/To/vendor/autoload.php';\n\n// Or include the library manually.\n// $requiredFile = 'Path/To/FileStreamer.php';\n\nrequire_once $requiredFile;\n\n// Instantiate the library.\n$fileStreamer = new FileStreamer('Path/To/File/To/Serve.ext');\n// Set inline disposition if wished.\n$fileStreamer-\u003esetInline();\n$fileStreamer-\u003estart();\n// Execution of PHP will terminate when FileStreamer::start() is finished.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigilive%2Ffilestreamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigilive%2Ffilestreamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigilive%2Ffilestreamer/lists"}