PHPackages                             coderofsalvation/browser-stream - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. coderofsalvation/browser-stream

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

coderofsalvation/browser-stream
===============================

stream text to browser in realtime without using websockets or ajax.

03002PHP

Since Aug 19Pushed 5y ago2 watchersCompare

[ Source](https://github.com/coderofsalvation/BrowserStream)[ Packagist](https://packagist.org/packages/coderofsalvation/browser-stream)[ RSS](/packages/coderofsalvation-browser-stream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BrowserStream
=============

[](#browserstream)

 [![](https://camo.githubusercontent.com/95eb37386010134c836679c4cfc5d845fbf78a732a445d4dcc35e6a579256f45/687474703a2f2f7777772e67696662696e2e636f6d2f62696e2f3132323031342f313431373536313335375f72697665725f73757266696e672e676966)](https://camo.githubusercontent.com/95eb37386010134c836679c4cfc5d845fbf78a732a445d4dcc35e6a579256f45/687474703a2f2f7777772e67696662696e2e636f6d2f62696e2f3132323031342f313431373536313335375f72697665725f73757266696e672e676966)

Stream text to browser in realtime without using websockets. Think simple text progressbars, logging, longrunning tasks, terminal output etc. Usage
-----

[](#usage)

```
$ composer require coderofsalvation/BrowserStream

```

and then

```

```

Now go to your browser and you'll see 'loading' and dots being added every second OH MY! :)

[![](https://raw.githubusercontent.com/coderofsalvation/BrowserStream/master/anim.gif?2)](https://raw.githubusercontent.com/coderofsalvation/BrowserStream/master/anim.gif?2)

Test it with curl like so:

```
$ curl -H "Accept: text/event-stream" -N -s "http://localhost/foo.php"

```

Apache Gzip == no worky
-----------------------

[](#apache-gzip--no-worky)

Usually apache gzips the output of php. This is not good if you want realtime output. Therefore disable apache gzip buffering in .htaccess for a particular (realtime streaming) url like so:

```
	RewriteRule ^(yoururl)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]

```

License
-------

[](#license)

BSD

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3ff28af20ec6cdc02a9b020c1f9ef72012f8a597c3b2e5ffd17ac032e893945?d=identicon)[coderofsalvation](/maintainers/coderofsalvation)

---

Top Contributors

[![coderofsalvation](https://avatars.githubusercontent.com/u/180068?v=4)](https://github.com/coderofsalvation "coderofsalvation (29 commits)")

### Embed Badge

![Health badge](/badges/coderofsalvation-browser-stream/health.svg)

```
[![Health](https://phpackages.com/badges/coderofsalvation-browser-stream/health.svg)](https://phpackages.com/packages/coderofsalvation-browser-stream)
```

PHPackages © 2026

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