PHPackages                             towoju/one2one-calls - 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. towoju/one2one-calls

ActiveLibrary

towoju/one2one-calls
====================

One-on-one video/audio call scaffolding for Laravel (WebRTC signaling + permissions + events).

v0.1.0(8mo ago)05MITPHPPHP &gt;=7.2

Since Aug 15Pushed 8mo agoCompare

[ Source](https://github.com/towoju5/one2one-calls)[ Packagist](https://packagist.org/packages/towoju/one2one-calls)[ RSS](/packages/towoju-one2one-calls/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Towoju One-to-One Calls (Laravel Package)
=========================================

[](#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
--------

[](#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
-------

[](#install)

```
composer require towoju/one2one-calls
php artisan vendor:publish --tag=one2one-calls-config
php artisan vendor:publish --tag=one2one-calls-migrations
php artisan migrate
php artisan vendor:publish --tag=one2one-calls-assets
```

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):

```

 {{-- Echo config in your app --}}

```

Use the Blade call view somewhere (optional):

```
@include('one2one-calls::call')
```

Super Admin permission UI:

```
GET  /one2one/permissions
PATCH /one2one/permissions/{user}

```

API (default `auth:sanctum`):

```
POST /api/one2one/availability { available: true|false }
GET  /api/one2one/availability/{userId}
POST /api/one2one/calls { receiver_id, metadata? }
POST /api/one2one/calls/{uuid}/accept
POST /api/one2one/calls/{uuid}/decline
POST /api/one2one/calls/{uuid}/end

```

Notes
-----

[](#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` in `config/one2one-calls.php`. Fallback boolean column `is_super_admin` is also supported.
- Middleware `EnsureCanInitiateCall` blocks unauthorized call attempts.
- Presence and push notifications can be added on top of this scaffold.

License
-------

[](#license)

MIT © Emmanuel A Towoju

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance58

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10d0b6560e7895f8e4b30e120cc5fca9e6a6472ce741a9c54779ba6f1ac6b158?d=identicon)[Towoju5](/maintainers/Towoju5)

---

Top Contributors

[![towoju5](https://avatars.githubusercontent.com/u/40261626?v=4)](https://github.com/towoju5 "towoju5 (3 commits)")

### Embed Badge

![Health badge](/badges/towoju-one2one-calls/health.svg)

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

PHPackages © 2026

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