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

ActiveLibrary

larva/pusher-sdk
================

The official Pusher Server PHP SDK.

1.0.7(2y ago)010MITPHPPHP ^8.0

Since Nov 17Pushed 1y agoCompare

[ Source](https://github.com/larvatecn/pusher-sdk)[ Packagist](https://packagist.org/packages/larva/pusher-sdk)[ RSS](/packages/larva-pusher-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

Pusher Server SDK
=================

[](#pusher-server-sdk)

[![Total Downloads](https://camo.githubusercontent.com/6155dcbe38b3783c378c4b89d00c18960722e3381df324a2cd9066e5a8ed18d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c617276612f7075736865722d73646b)](https://packagist.org/packages/larva/pusher-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/3ce210485ca7ecf84ee94b2fdabbdb283ac32ce271ede259a80de29d07af2ef6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617276612f7075736865722d73646b)](https://packagist.org/packages/larva/pusher-sdk)[![License](https://camo.githubusercontent.com/4566231455606eb75cfe55e97327527a3bbe3949fab25817a63f7db54d7bb0ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c617276612f7075736865722d73646b)](https://packagist.org/packages/larva/pusher-sdk)

Introduction
------------

[](#introduction)

Pusher 服务 Sdk

Official Documentation
----------------------

[](#official-documentation)

### 安装

[](#安装)

To install the SDK in your project you need to require the package via composer:

```
composer require larva/pusher-sdk
```

### 基本使用

[](#基本使用)

您可以创建这样的SDK实例:

```
$forge = new Larva\Pusher\Forge('http://ws.domain.com', TOKEN_HERE);
```

发布点对点事件：

```
$res = $forge->publish('6557749ee6d95#32131','event', ['name'=>'张三']);
```

向频道广播事件：

```
$res = $forge->trigger('room1','event', ['name'=>'张三']);

//或者

$channel = $forge->channel('room1');
$channel->trigger('event', ['name'=>'张三']);
```

查询频道在线人数：

```
$channel = $forge->channel('room1');
$channel->online_users;
```

License
-------

[](#license)

Larva Forge SDK is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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 ~25 days

Recently: every ~39 days

Total

8

Last Release

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/534cdb651e8c806590fa945c6b5a18f361613848e890db1349f4a9fbcae1a650?d=identicon)[xutongle](/maintainers/xutongle)

---

Top Contributors

[![xutongle](https://avatars.githubusercontent.com/u/46956076?v=4)](https://github.com/xutongle "xutongle (14 commits)")

---

Tags

sdkpusherLarva

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)

PHPackages © 2026

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