PHPackages                             pushstream/pushstream-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. pushstream/pushstream-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

pushstream/pushstream-php
=========================

PushStream PHP SDK for real-time messaging

v1.0.4(4mo ago)03MITPHPPHP &gt;=7.4

Since Jan 5Pushed 2mo agoCompare

[ Source](https://github.com/bkkalana/pushstream-php)[ Packagist](https://packagist.org/packages/pushstream/pushstream-php)[ RSS](/packages/pushstream-pushstream-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

PushStream PHP SDK
==================

[](#pushstream-php-sdk)

Server-side PHP SDK for PushStream event publishing, batch publishing, channel auth payload generation, and webhook signature verification.

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

[](#installation)

```
composer require pushstream/pushstream-php
```

Configuration
-------------

[](#configuration)

Pass `apiUrl` explicitly or set `PUSHSTREAM_API_URL`.

```
use PushStream\PushStream;

$client = new PushStream(
    'APP_ID',
    'APP_KEY',
    'APP_SECRET',
    ['apiUrl' => 'https://api.pushstream.online']
);
```

Publish
-------

[](#publish)

```
$response = $client->publish('public-orders', 'order.created', ['id' => 1]);
```

The SDK signs requests with the current PushStream query contract:

- `auth_key`
- `auth_timestamp`
- `auth_version`
- `body_md5`
- `auth_signature`

Batch Publish
-------------

[](#batch-publish)

```
$client->publishBatch([
    ['name' => 'order.created', 'channel' => 'public-orders', 'data' => ['id' => 1]],
    ['name' => 'order.updated', 'channel' => 'public-orders', 'data' => ['id' => 1, 'status' => 'paid']],
]);
```

Channel Auth
------------

[](#channel-auth)

```
$auth = $client->authorizeChannel(
    '123.456',
    'presence-org-1-chat',
    ['user_id' => '1001', 'user_info' => ['name' => 'Kamal']]
);
```

Returned payload shape:

- `auth` =&gt; `{app_key}:{signature}`
- `channel_data` =&gt; JSON string for presence channels

Webhook Verification
--------------------

[](#webhook-verification)

```
$valid = $client->verifyWebhook($signature, $rawBody);
```

Security Notes
--------------

[](#security-notes)

- Keep `APP_SECRET` server-side only.
- This SDK is for trusted server environments, not browsers or mobile clients.

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance81

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Every ~14 days

Total

4

Last Release

136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b57e25e41d3c1b6ee3aec8925138abc2ae2fcc7ea5b13c385c597e95a9f1366?d=identicon)[ceylonitsolutions](/maintainers/ceylonitsolutions)

---

Top Contributors

[![bkkalana](https://avatars.githubusercontent.com/u/79751067?v=4)](https://github.com/bkkalana "bkkalana (10 commits)")

---

Tags

laravelwebsocketmessagingpusherrealtime

### Embed Badge

![Health badge](/badges/pushstream-pushstream-php/health.svg)

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

###  Alternatives

[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k106.6M350](/packages/pusher-pusher-php-server)[centrifugal/phpcent

PHP library to communicate with Centrifugo HTTP API

1852.5M4](/packages/centrifugal-phpcent)[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

404509.7k4](/packages/pusher-pusher-http-laravel)[sl4mmer/phpcent

PHP library to communicate with Centrifugo HTTP API

185296.5k1](/packages/sl4mmer-phpcent)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4974.0k](/packages/basement-chat-basement-chat)[sockeon/sockeon

Framework-agnostic PHP WebSocket and HTTP server library with attribute-based routing and support for namespaces and rooms.

281.6k2](/packages/sockeon-sockeon)

PHPackages © 2026

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