承接 ripple/ripple-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ripple/ripple-laravel

Composer 安装命令:

composer require ripple/ripple-laravel

包简介

Laravel broadcasting driver + CLI for the ripple WebSocket server (Pusher-compatible).

README 文档

README

Ripple

Ripple for Laravel

Laravel broadcasting driver for Ripple — a self-hosted, Pusher-compatible WebSocket server shipped as a single static binary.

License: MIT

No Redis, no Node, no PHP extensions. The server speaks the Pusher protocol, so Laravel Echo and your existing broadcasting code work unchanged — this package just wires Laravel to it and manages the binary for you.

Requirements

  • PHP ≥ 7.4
  • Laravel 6, 7, 8, 9, 10, 11, 12 or 13 — one package version covers all. Every version is verified end-to-end (real app, real broadcast, real pusher-js subscriber) by qa/laravel/matrix.sh:
Laravel PHP tested Status
6 / 7 7.4
8 8.0
9 8.1
10 8.2
11 / 12 8.3
13 8.4

Installation — two commands, any Laravel project

composer require ripple/ripple-laravel
php artisan ripple:install

ripple:install does everything:

  • detects your OS/architecture (Linux x86_64/ARM64, macOS Intel/Apple Silicon, Windows) and downloads the matching server binary from GitHub Releases (SHA-256 verified) into ./bin
  • points broadcasting at ripple in your .env (both BROADCAST_DRIVER and BROADCAST_CONNECTION, so every Laravel version picks it up)
  • generates random RIPPLE_APP_ID / RIPPLE_KEY / RIPPLE_SECRET credentials (existing values are never overwritten; --no-env skips this)

Then start broadcasting:

php artisan ripple:start

That's it — broadcast(new MyEvent()) and Laravel Echo work.

Configuration

Switching an existing Pusher/Reverb app is environment-only — no code changes:

BROADCAST_CONNECTION=ripple   # Laravel 11+
BROADCAST_DRIVER=ripple       # Laravel 6-10 read this variable instead

RIPPLE_APP_ID=app1
RIPPLE_KEY=my-key
RIPPLE_SECRET=my-secret
RIPPLE_HOST=127.0.0.1
RIPPLE_PORT=8080
RIPPLE_SCHEME=http        # https if TLS terminates before the server

The service provider registers both the ripple driver and the broadcasting connection automatically. Optionally publish the config:

php artisan vendor:publish --tag=ripple-config
Key Env Default
host RIPPLE_HOST 127.0.0.1 Server host
port RIPPLE_PORT 8080 Server port (WS + REST)
scheme RIPPLE_SCHEME http https behind TLS
app_id RIPPLE_APP_ID app1 Must match the server config
key / secret RIPPLE_KEY / RIPPLE_SECRET Must match the server config
bin RIPPLE_BIN base_path('bin/ripple') Binary location

Usage

Start the server (generates a ripple.toml from your config):

php artisan ripple:start
# or with a hand-written config:
php artisan ripple:start --config /etc/ripple.toml

Broadcast as usual:

broadcast(new OrderShipped($order));

Frontend via Laravel Echo (pusher-js transport):

const echo = new Echo({
    broadcaster: 'pusher',
    key: import.meta.env.VITE_RIPPLE_KEY,
    wsHost: import.meta.env.VITE_RIPPLE_HOST,
    wsPort: import.meta.env.VITE_RIPPLE_PORT,
    forceTLS: false,
    enabledTransports: ['ws', 'wss'],
});

Private channels authenticate through the standard /broadcasting/auth endpoint — nothing to change.

How it works

The package is intentionally thin: the server is Pusher-compatible, so the driver extends Laravel's own PusherBroadcaster and points it at Ripple. All the heavy lifting (connection handling, fan-out, backpressure) lives in the compiled server — your PHP app only sends signed HTTP requests to it.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固