PHPackages                             dlg-projects/streamfile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dlg-projects/streamfile

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dlg-projects/streamfile
=======================

Stream file, use HTTP Partial Content

v1.0(5y ago)118MITPHPPHP ^7.0

Since Nov 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dlg-projects/streamFile)[ Packagist](https://packagist.org/packages/dlg-projects/streamfile)[ RSS](/packages/dlg-projects-streamfile/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

StreamFile
==========

[](#streamfile)

Stream File is a package that displays the partial content of a file

Installation
------------

[](#installation)

You may use Composer to install StreamFile to your project:

```
composer require dlg-projects/streamfile
```

Use
---

[](#use)

```
use DlgProjects\StreamFile;

$stream = new StreamFile('myFolder/myFile.mp4');
$stream->startStream();
```

Functions available
-------------------

[](#functions-available)

1. public functions:

- **getBufferSize** : get the size of the buffer used
- **getFile** : get the file that will be opened for stream
- **getFileName** : get the name that will be displayed in the HTML header
- **getFileSize** : get file size
- **getRangeEnd** : get the end of the range requested by HTML header
- **getRangeStart** : get the start of the range requested by HTML header
- **getTypeMime** : get mime type of file
- **setBufferSize** : define the size of the buffer (default: 524288 byte)
- **setFileName** : define the name of the file that will be sent in the header (default: the same as the file)
- **setFileSize** : define the file size. It's automatically set by the constructor. But it may be necessary to set it manually if the constructor cannot.
- **setTypeMime** : define the type mime. It's automatically set by the constructor but you can change it
- **startStream** : starts streaming the file

License
=======

[](#license)

This library is released under the [MIT license](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/073fd944fe9f91683d78ef27a2c6c813cbd6c5ba59927777e42bea6faee2e20b?d=identicon)[fdehlinger](/maintainers/fdehlinger)

---

Top Contributors

[![dlg-projects](https://avatars.githubusercontent.com/u/74434984?v=4)](https://github.com/dlg-projects "dlg-projects (1 commits)")

---

Tags

stream

### Embed Badge

![Health badge](/badges/dlg-projects-streamfile/health.svg)

```
[![Health](https://phpackages.com/badges/dlg-projects-streamfile/health.svg)](https://phpackages.com/packages/dlg-projects-streamfile)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[php-http/multipart-stream-builder

A builder class that help you create a multipart stream

29390.9M224](/packages/php-http-multipart-stream-builder)[ezimuel/guzzlestreams

Fork of guzzle/streams (abandoned) to be used with elasticsearch-php

176108.6M3](/packages/ezimuel-guzzlestreams)[ringcentral/psr7

PSR-7 message implementation

15322.2M62](/packages/ringcentral-psr7)[jsq/psr7-stream-encryption

For encrypting and decrypting streams of arbitrary size.

36134.2k1](/packages/jsq-psr7-stream-encryption)[genkgo/archive-stream

Stream a ZIP file (memory efficient) as a PSR-7 message

3063.0k](/packages/genkgo-archive-stream)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
