PHPackages                             scaledrone/scaledrone - 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. scaledrone/scaledrone

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

scaledrone/scaledrone
=====================

Official ScaleDrone PHP pushing library

0.5.0(8y ago)1132.2k5MITPHP

Since Jan 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ScaleDrone/scaledrone-php)[ Packagist](https://packagist.org/packages/scaledrone/scaledrone)[ Docs](https://www.scaledrone.com/)[ RSS](/packages/scaledrone-scaledrone/feed)WikiDiscussions master Synced 1mo ago

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

ScaleDrone PHP
==============

[](#scaledrone-php)

Official ScaleDrone PHP pushing library. This is a wrapper around the REST API.

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

[](#installation)

Make sure you have [composer](https://getcomposer.org) installed.

Install it directly:

```
composer require scaledrone/scaledrone

```

Or add the following to your `composer.json`:

```
{
    "require": {
        "scaledrone/scaledrone": "*"
    }
}
```

Then update your dependencies:

```
$ php composer.phar update
```

Usage
-----

[](#usage)

Create a new instance of ScaleDrone passing it the `channel_id` and `secret_key` that you can find from the channel's page

```
$auth = array(
    'channel_id' => 'CHANNEL_ID',
    'secret_key' => 'SECRET_KEY'
);

$client = ScaleDrone\Client::create($auth);
```

If you wish to connect using a [JSON Web Token](https://www.scaledrone.com/docs/jwt-authentication) you can set it like this:

```
$auth = array(
    'channel_id' => 'CHANNEL_ID',
    'bearer' => 'GENERATED_JWT'
);

$client = ScaleDrone\Client::create($auth);
```

Publishing a message

```
$room = 'notifications';
$message = ['email' => 'test2@foo.bar', 'name' => 'php name'];
$response = $client->publish($room, $message);
```

Channel stats

```
$response = $client->channel_stats();
```

Getting the complete list of users from all rooms

```
$response = $client->members_list();
```

Getting the list of users in a room

```
$response = $client->room_members_list('roomName');
```

Getting the list of rooms and their members

```
$response = $client->all_room_members_list('roomName');
```

Running Tests
-------------

[](#running-tests)

Clone this repository and change directories to the repository root. Install all dependencies with `composer install`. Then, just run `vendor/bin/phpunit`.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.3% 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 ~130 days

Recently: every ~163 days

Total

6

Last Release

3112d ago

### Community

Maintainers

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

---

Top Contributors

[![herkyl](https://avatars.githubusercontent.com/u/714950?v=4)](https://github.com/herkyl "herkyl (23 commits)")[![mcordingley](https://avatars.githubusercontent.com/u/1084253?v=4)](https://github.com/mcordingley "mcordingley (6 commits)")

---

Tags

phppush-notificationsreal-timescaledronepushpublishscaledrone

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[symfony/web-link

Manages links between resources

1.4k99.0M251](/packages/symfony-web-link)[symfony/mercure-bundle

Symfony MercureBundle

30913.5M53](/packages/symfony-mercure-bundle)[php-mqtt/client

An MQTT client written in and for PHP.

4372.1M30](/packages/php-mqtt-client)[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

400509.0k3](/packages/pusher-pusher-http-laravel)[apple/apn-push

Push notifications to Apple devices

1661.4M3](/packages/apple-apn-push)

PHPackages © 2026

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