PHPackages                             webmodules/jqbus - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. webmodules/jqbus

ActiveUtility[Queues &amp; Workers](/categories/queues)

webmodules/jqbus
================

JavaSript based message queue

0.0.9(9y ago)0391MITJavaScript

Since Jul 25Pushed 9y ago8 watchersCompare

[ Source](https://github.com/webmodule/jqbus)[ Packagist](https://packagist.org/packages/webmodules/jqbus)[ RSS](/packages/webmodules-jqbus/feed)WikiDiscussions master Synced 1mo ago

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

\#JQBUS

#### In my module1 in some file module1.js

[](#in-my-module1-in-some-file-module1js)

```
var bus = jqbus.instance();

bus.on("when_something_happens", function(){
    console.log("I want to be notified, so that i can do something");
});
```

### In my module2, maybe in some other file module.js

[](#in-my-module2-maybe-in-some-other-file-modulejs)

```
var bus = jqbus.instance();

bus.publish("when_something_happens");
```

Now as you can see module1 has never interacted with mmodule2 or vice-versa, they are not even being discussed, but both modules have knowledge of jqbus and they created their own instances and somehow are able to communicate !!Hurray!!

So we have triggered some function in module1 from inside module2 without even having reference of module1, similarly we can have as many listeneres as we want in as many modules as we can. Optionally we can also pass data along with, triggering the callback function.

```
bus.on("when_something_happens", function(e,target,data){
    //data sent by trigger function
    console.log("I want to be notified, so that i can do something");
});

bus.publish("when_something_happens", { name : "Hello" });
```

In addition to passing data to different module, JQBUS is able to send data to different tab also for same domain.

we can remove listeners when we wish, by simply using

```
bus.off();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~70 days

Recently: every ~149 days

Total

10

Last Release

3314d ago

### Community

Maintainers

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

---

Top Contributors

[![lnt](https://avatars.githubusercontent.com/u/5462166?v=4)](https://github.com/lnt "lnt (18 commits)")[![improm](https://avatars.githubusercontent.com/u/10056427?v=4)](https://github.com/improm "improm (1 commits)")

---

Tags

javascriptroutercontroller

### Embed Badge

![Health badge](/badges/webmodules-jqbus/health.svg)

```
[![Health](https://phpackages.com/badges/webmodules-jqbus/health.svg)](https://phpackages.com/packages/webmodules-jqbus)
```

###  Alternatives

[lorisleiva/laravel-actions

Laravel components that take care of one specific task

2.8k7.5M115](/packages/lorisleiva-laravel-actions)[richarddobron/bigpipe

BigPipe: Pipelining web pages for high performance built in PHP.

1110.9k](/packages/richarddobron-bigpipe)[saeven/zf3-circlical-autowire

Annotation based routing, and magic Controller creation for Laminas and ZF3.

1430.0k](/packages/saeven-zf3-circlical-autowire)

PHPackages © 2026

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