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(3mo ago)03MITPHPPHP &gt;=7.4

Since Jan 5Pushed 3mo 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 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

PushStream PHP SDK (`sdks` Edition)
===================================

[](#pushstream-php-sdk-sdks-edition)

PHP SDK for PushStream event publishing, batch publishing, and channel auth signature generation.

Source
------

[](#source)

- File: `sdks/pushstream-php/src/PushStream.php`
- Class: `PushStream\PushStream`

Compatibility
-------------

[](#compatibility)

This SDK matches current PushStream protocol:

- Event endpoint: `POST /api/apps/{app_id}/events`
- Batch endpoint: `POST /api/apps/{app_id}/batch_events`
- Publish auth header: `Authorization: {app_id}:{signature}`
- Batch `data` normalized as JSON string
- Channel auth result format: `{app_id}:{signature}`

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

[](#installation)

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

Quick Start
-----------

[](#quick-start)

```
