PHPackages                             clake/pusher - 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. clake/pusher

ActiveLibrary

clake/pusher
============

OctoberCMS Pusher Integration. Provides a simple wrapper for Pusher making it easier than ever to use websockets in an October project.

561[1 issues](https://github.com/ShawnClake/pusher/issues)PHP

Since Nov 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ShawnClake/pusher)[ Packagist](https://packagist.org/packages/clake/pusher)[ RSS](/packages/clake-pusher/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OctoberCMS Pusher Integration
=============================

[](#octobercms-pusher-integration)

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

[](#installation)

1. You must first install Pusher's PHP library:
2. Fill in the config values included with this plugin with your applicable Pusher credentails. You will need your Pusher Secret, Pusher appid, and Pusher key.
3. Create an OctoberCMS page (URL: ) with a blank layout and only add the AuthEndpoint component included with this plugin onto that page.
4. Include Pushers javascript library to your theme:

\##Usage

- Use this JS to create a Pusher object:

    ```
      var pusher = new Pusher('YOUR_PUSHER_KEY_GOES_HERE', {
          encrypted: true
      });

    ```
- Use this JS to connect to a Pusher public channel and bind to an event:

    ```
      var channel = pusher.subscribe('PUBLIC_CHANNEL_NAME');
      channel.bind('test', function(data) {
          console.log("Test: " + data);
      });

    ```
- Use this JS to connect and authenticate a Pusher private channel and bind to an event:

    ```
      var privateChannel = pusher.subscribe("private-PRIVATE_CHANNEL_NAME");
      privateChannel.bind('test', function(data) {
          console.log("PRIVATE - test: " + data);
      });

    ```
- Use this JS to connect and authenticate a Pusher presence channel and bind to an event:

    ```
      var presenceChannel = pusher.subscribe('presence-PRESENCE_CHANNEL_NAME');
      presenceChannel.bind('test', function(data) {
          console.log("PRESENCE - test: " + data);
      });

    ```
- Use this PHP to trigger an event to a pusher channel:

    ```
      Pusher::init()->trigger($channel_name, $event_name, $data);

    ```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

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/0b05c098e5d796ff391a7eb7c70fed1246717dd2084d9c1d79ecbcb9c9bbb9ec?d=identicon)[ShawnClake](/maintainers/ShawnClake)

---

Top Contributors

[![ShawnClake](https://avatars.githubusercontent.com/u/19659689?v=4)](https://github.com/ShawnClake "ShawnClake (11 commits)")

### Embed Badge

![Health badge](/badges/clake-pusher/health.svg)

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

PHPackages © 2026

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