dpsoft / psr7partial-download
Partial file download based on PSR-7
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/dpsoft/psr7partial-download
Requires
- guzzlehttp/psr7: ^1.4
- psr/http-message: 1.0.1
Requires (Dev)
- phpunit/phpunit: 6.5.6
This package is auto-updated.
Last update: 2025-09-16 05:10:26 UTC
README
PSR-7 Partial file download package based on HTTP 206 Partial Content In Node.js
Install
Install latest version using composer.
$ composer require dpsoft/psr7partial-download
Usage
/** @var Psr\Http\Message\ServerRequestInterface */ $request = ; /** @var Psr\Http\Message\ResponseInterface */ $response = ; $serve = new Dpsoft\psr7PartialDownload\Serve($request,$response); /** @var Psr\Http\Message\ResponseInterface */ $response = $serve->download($filePath,$fileName);
Test
with 93% code coverage!