Download the PHP package rajibul/lolipop-sfu without Composer
On this page you can find all versions of the php package rajibul/lolipop-sfu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rajibul/lolipop-sfu
More information about rajibul/lolipop-sfu
Files in rajibul/lolipop-sfu
Package lolipop-sfu
Short Description Official Laravel SDK for Lolipop.live WebRTC SFU & PK Battle Engine
License MIT
Informations about the package lolipop-sfu
Lolipop WebRTC SFU & PK Battle Laravel SDK (rajibul/lolipop-sfu)
Official Laravel SDK for integrating with the high-performance Go WebRTC SFU (Selective Forwarding Unit), Coturn STUN/TURN ephemeral token builder, and Dual-Host PK Battle Engine.
๐ Features
- โก Auto-Discovery: Seamless Laravel 10 / 11 Service Provider &
LolipopFacade auto-discovery. - ๐ Coturn STUN/TURN Credentials: Generates ephemeral, time-limited HMAC-SHA1 tokens for symmetric NAT traversal.
- โ๏ธ Dual-Host PK Battle Engine: Initiate, synchronize, and track real-time dual-room PK battles.
- ๐ Real-Time Gift Pipeline: Credit in-stream gifts directly into PK battle scoring loops.
- ๐ฌ In-Stream Messaging: Broadcast administrative notices and chat events to live rooms.
- ๐ก๏ธ Robust Error Handling: Domain-specific
LolipopExceptionwith full HTTP status codes and error payload inspectability.
๐ฆ Installation
Install via Composer:
Publish the package configuration:
โ๏ธ Configuration
Add the following environment variables to your Laravel .env file:
๐ก Usage Examples
1. Generating Room Join Payload for Web/Mobile Clients
When a user or host enters a live room, call generateJoinPayload in your controller to supply the client with WebSocket endpoints and signed ICE/TURN credentials:
2. Starting a Dual-Host PK Battle
Initiate a cross-room PK battle between Host A in Room A and Host B in Room B:
3. Sending a Live Gift (Auto-Credits PK Battle Score)
Send gifts inside a live room. If the room is in an active PK battle, the points are instantly applied to the receiver host's score and broadcast via WebRTC DataChannels:
4. Broadcasting In-Stream System Notices
5. Checking SFU Server Health
๐งช Testing
๐ License
The MIT License (MIT). Please see LICENSE.md for more information.
All versions of lolipop-sfu with dependencies
illuminate/support Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.8