Download the PHP package towoju/one2one-calls without Composer
On this page you can find all versions of the php package towoju/one2one-calls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download towoju/one2one-calls
More information about towoju/one2one-calls
Files in towoju/one2one-calls
Package one2one-calls
Short Description One-on-one video/audio call scaffolding for Laravel (WebRTC signaling + permissions + events).
License MIT
Informations about the package one2one-calls
Towoju One-to-One Calls (Laravel Package)
One-on-one audio/video call scaffolding for Laravel apps. Handles permissions, signaling events, availability, and ships a minimal Blade UI + JS stub using WebRTC and Laravel Echo.
Streams are peer-to-peer via WebRTC. Laravel handles auth, permissions, and event signaling.
Features
- Toggle who can initiate calls (Super Admin only).
- All users can receive calls by default.
- Events: Incoming, Accepted, Declined, Ended, Availability.
- Private broadcast channels:
calls.user.{id}
- Minimal floating window UI with mic/video/switch camera buttons.
- Availability status via cache.
- API endpoints secured with
auth:sanctum
(adjust as needed).
Install
Ensure broadcasting is configured (Pusher or laravel-websockets
).
Add a meta tag for the authenticated user ID on pages that use the call UI:
Include Echo and the package JS (after configuring Echo):
Use the Blade call view somewhere (optional):
Super Admin permission UI:
API (default auth:sanctum
):
Notes
- Replace or extend the JS to exchange SDP/ICE over Echo events for a full WebRTC flow.
- To lock Super Admin by role, set
super_admin_role
inconfig/one2one-calls.php
. Fallback boolean columnis_super_admin
is also supported. - Middleware
EnsureCanInitiateCall
blocks unauthorized call attempts. - Presence and push notifications can be added on top of this scaffold.
License
MIT © Emmanuel A Towoju