PHPackages                             alawar/nginx\_push\_stream\_bundle - 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. alawar/nginx\_push\_stream\_bundle

ActiveLibrary

alawar/nginx\_push\_stream\_bundle
==================================

2669[5 issues](https://github.com/AlexeyKupershtokh/nginx_push_stream_bundle/issues)PHP

Since Sep 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/AlexeyKupershtokh/nginx_push_stream_bundle)[ Packagist](https://packagist.org/packages/alawar/nginx_push_stream_bundle)[ RSS](/packages/alawar-nginx-push-stream-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/14812499ca5a86034a5b67bffbf9b9b493bd3502e39a952ffd57dc15ad1e3c88/68747470733a2f2f7472617669732d63692e6f72672f416c657865794b757065727368746f6b682f6e67696e785f707573685f73747265616d5f62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/AlexeyKupershtokh/nginx_push_stream_bundle)[![HHVM Status](https://camo.githubusercontent.com/866a7e9e321366e997fe15910d7610e72b918a94c2a2365c2a6562069bdce9f1/687474703a2f2f6868766d2e683463632e64652f62616467652f616c617761722f6e67696e785f707573685f73747265616d5f62756e646c652e737667)](http://hhvm.h4cc.de/package/alawar/nginx_push_stream_bundle)[![Coverage Status](https://camo.githubusercontent.com/eefbb664182456470f9f55b9bb623499fb4f2e7e5440dc654dbde033e5ab9a7d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f416c657865794b757065727368746f6b682f6e67696e785f707573685f73747265616d5f62756e646c652f62616467652e706e67)](https://coveralls.io/r/AlexeyKupershtokh/nginx_push_stream_bundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/dc9e3cd33f71bccba98cf025c088880432171b120d5416107e4a61074a46d950/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c657865794b757065727368746f6b682f6e67696e785f707573685f73747265616d5f62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d35323738373438636232313838326133393366656632386335336265373262333764333062633838)](https://scrutinizer-ci.com/g/AlexeyKupershtokh/nginx_push_stream_bundle/)[![Dependency Status](https://camo.githubusercontent.com/7e972346da40aceb2995a61afbe0d13c583f1f22ab4e489fdff43048749aedfd/68747470733a2f2f67656d6e617369756d2e636f6d2f416c657865794b757065727368746f6b682f6e67696e785f707573685f73747265616d5f62756e646c652e706e67)](https://gemnasium.com/AlexeyKupershtokh/nginx_push_stream_bundle)[![Latest Stable Version](https://camo.githubusercontent.com/313e7b47e5200618c2cae28070726c00016ad581cbb4543572b7a85fcbde1e0c/68747470733a2f2f706f7365722e707567782e6f72672f616c617761722f6e67696e785f707573685f73747265616d5f62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/alawar/nginx_push_stream_bundle)[![Total Downloads](https://camo.githubusercontent.com/a98a18fe2cfa111966cb0e6cf493c955cb0d3b4705e89cc0c126500bf7e74e19/68747470733a2f2f706f7365722e707567782e6f72672f616c617761722f6e67696e785f707573685f73747265616d5f62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/alawar/nginx_push_stream_bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/201a7882c6fbcd61aeaccf91f1f3f2dba63617950bac893e81e0d68a016524c9/68747470733a2f2f706f7365722e707567782e6f72672f616c617761722f6e67696e785f707573685f73747265616d5f62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/alawar/nginx_push_stream_bundle)[![License](https://camo.githubusercontent.com/7ea935e5a7e3780b828a6a6b3d71cb1c4f8341c7ea2b8cf4138faa10a161326b/68747470733a2f2f706f7365722e707567782e6f72672f616c617761722f6e67696e785f707573685f73747265616d5f62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/alawar/nginx_push_stream_bundle)

nginx\_push\_stream\_bundle
===========================

[](#nginx_push_stream_bundle)

A PHP bundle to assist your [nginx\_push\_stream\_module](https://github.com/wandenberg/nginx-push-stream-module) installation:

1. Generate links on server side.
2. Publish messages.
3. Automatically generate ids for messages on server side.
4. Filter tokens:
5. Hash token names in order to make them unpredictable and thus more secure.
6. Prefix tokens to separate your applications sharing the same nginx\_push\_stream\_module locations.

Installation
============

[](#installation)

`composer require alawar/nginx_push_stream_bundle dev-master`

Usage
=====

[](#usage)

In Symfony2 you should register the bundle. Then add the following config:

```
nginx_push_stream:
  pub_url: http://.../pub?id={token}
  sub_urls:
    polling:      http://.../sub-p/{tokens}
    long-polling: http://.../sub-lp/{tokens}
    streaming:    http://.../sub-s/{tokens}
    eventsource:  http://.../sub-ev/{tokens}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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/08a0e25ce82041e363606cc90327a7efcf1704cad5634dd554409a798dbf4b39?d=identicon)[AlexeyKupershtokh](/maintainers/AlexeyKupershtokh)

---

Top Contributors

[![AlexeyKupershtokh](https://avatars.githubusercontent.com/u/499778?v=4)](https://github.com/AlexeyKupershtokh "AlexeyKupershtokh (79 commits)")

### Embed Badge

![Health badge](/badges/alawar-nginx-push-stream-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/alawar-nginx-push-stream-bundle/health.svg)](https://phpackages.com/packages/alawar-nginx-push-stream-bundle)
```

PHPackages © 2026

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