PHPackages                             sqwad/direct-flow - 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. sqwad/direct-flow

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

sqwad/direct-flow
=================

Direct Flow client for PHP

v1.0.1(4y ago)03MITPHPPHP ^7.4

Since Apr 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sqwad-io/direct-flow-php)[ Packagist](https://packagist.org/packages/sqwad/direct-flow)[ RSS](/packages/sqwad-direct-flow/feed)WikiDiscussions master Synced today

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

Sqwad DirectFlow Client PHP library
===================================

[](#sqwad-directflow-client-php-library)

Instant bidirectional interactions made easy !

Guzzle is needed and included, but you can pass a custom client at construct time.

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

[](#installation)

```
composer require sqwad/direct-flow
```

Usage
-----

[](#usage)

Note: Replace with your API keys

### Broadcast to any client

[](#broadcast-to-any-client)

```
use Sqwad\DirectFlow\DirectFlowClient

$client = new DirectFlowClient('d773cbae-a469-4bd0-93de-02cd3f76a987', 'd0e41aff-6a90-4d7a-9eee-db1998353192');
$client->publish([
    'foo' => 'bar',
]);

```

### Broadcast to a specific channel

[](#broadcast-to-a-specific-channel)

You can broadcast a message to a specific channel, for example a user UUID, a trading topic, ...

```
use Sqwad\DirectFlow\DirectFlowClient

$client = new DirectFlowClient('d773cbae-a469-4bd0-93de-02cd3f76a987', 'd0e41aff-6a90-4d7a-9eee-db1998353192');
$client->publish([
    'channel' => 'my-channel',
    'foo' => 'bar',
]);

```

### Send to recipient

[](#send-to-recipient)

You can send message or data to a specific recipient, to do so, the `to` field need to be set with websocket id.

```
use Sqwad\DirectFlow\DirectFlowClient

$client = new DirectFlowClient('d773cbae-a469-4bd0-93de-02cd3f76a987', 'd0e41aff-6a90-4d7a-9eee-db1998353192');
$client->publish([
    'to' => 'recipient-id',
    'foo' => 'bar',
]);

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1528d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4180708?v=4)[Nicolas Guillard](/maintainers/nitrique)[@nitrique](https://github.com/nitrique)

---

Top Contributors

[![nitrique](https://avatars.githubusercontent.com/u/4180708?v=4)](https://github.com/nitrique "nitrique (2 commits)")

---

Tags

restpusheventsreal-timepublishmessagingrealtimetriggerdirect flow

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sqwad-direct-flow/health.svg)

```
[![Health](https://phpackages.com/badges/sqwad-direct-flow/health.svg)](https://phpackages.com/packages/sqwad-direct-flow)
```

###  Alternatives

[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k106.6M350](/packages/pusher-pusher-php-server)[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

404509.7k4](/packages/pusher-pusher-http-laravel)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[zfr/zfr-pusher

PHP library for interacting with the Pusher REST API

2112.7k1](/packages/zfr-zfr-pusher)

PHPackages © 2026

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