PHPackages                             necromant2005/tt-long-pooling - 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. necromant2005/tt-long-pooling

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

necromant2005/tt-long-pooling
=============================

long pooling based on React

1.0(11y ago)018MITPHPPHP &gt;=5.4.0

Since Dec 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/necromant2005/tt-long-pooling)[ Packagist](https://packagist.org/packages/necromant2005/tt-long-pooling)[ Docs](https://github.com/necromant2005/tt-long-pooling)[ RSS](/packages/necromant2005-tt-long-pooling/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

tt-long-pooling
===============

[](#tt-long-pooling)

[![Build Status](https://camo.githubusercontent.com/57d6727713ed21f782f7b5d5ee37eaff9e29dc571831b203728ece8b5c06ea70/68747470733a2f2f7472617669732d63692e6f72672f6e6563726f6d616e74323030352f74742d6c6f6e672d706f6f6c696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/necromant2005/tt-long-pooling)

Introduction
------------

[](#introduction)

PHP long pooling

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

[](#installation)

### Main Setup

[](#main-setup)

#### With composer

[](#with-composer)

1. Add this to your composer.json:

```
"require": {
    "necromant2005/tt-long-pooling": "1.*",
}
```

#### Usage

[](#usage)

```
use TweeLongPooling\Service\LongPooling;

$options =  [
    'callsLimit' => $callsLimit,
    'callback' => $callback,
    'response' => [
        'done'  => $done,
        'wait'  => $wait,
        'error' => $error,
    ],
];

(new LongPooling($options, $listen, $timePeriod))->run();
```

- $callsLimit - system iterations count;
- $callback - function to call in each iteration;
- $done - responce on done;
- $wait - responce on wait;
- $error - responce on error;
- $listen - array of listened ports;
- $timePeriod - iteration time period;

$callback function will be called $callsLimit times. If $callback returns 'true' then responce with $done as body will be returned . If $callback returns 'false' and there is no $callsLimit to execute then response with $wait as body will be returned. If callback returns nor 'true' nor 'false' then response with $error as body will be returned .

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% 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

4166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9309c4fd0805a924a73c6b2f0128ad986db4b17aa300d505abbd002429a9db46?d=identicon)[shabot](/maintainers/shabot)

---

Top Contributors

[![shabot](https://avatars.githubusercontent.com/u/8178410?v=4)](https://github.com/shabot "shabot (24 commits)")[![necromant2005](https://avatars.githubusercontent.com/u/159874?v=4)](https://github.com/necromant2005 "necromant2005 (1 commits)")

---

Tags

reactlong pooling

### Embed Badge

![Health badge](/badges/necromant2005-tt-long-pooling/health.svg)

```
[![Health](https://phpackages.com/badges/necromant2005-tt-long-pooling/health.svg)](https://phpackages.com/packages/necromant2005-tt-long-pooling)
```

###  Alternatives

[ijpatricio/mingle

Use Vue and React in Laravel Livewire Applications.

43445.4k2](/packages/ijpatricio-mingle)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8944.9k](/packages/talyssonoc-react-laravel)[mkraemer/react-pcntl

PCNTL bindings for ReactPHP

57289.0k9](/packages/mkraemer-react-pcntl)[nystudio107/craft-routemap

Returns a list of Craft/Vue/React route rules and element URLs for ServiceWorkers from Craft entries

3151.3k2](/packages/nystudio107-craft-routemap)[mkraemer/react-inotify

Inotify bindings for ReactPHP

5016.3k1](/packages/mkraemer-react-inotify)[sandstorm/lazydatasource

Neos package implementing a lazy data source for the UI; so that the elements are loaded lazily on demand.

1044.5k4](/packages/sandstorm-lazydatasource)

PHPackages © 2026

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