PHPackages                             mohamedhekal/classbridge - 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. [Image &amp; Media](/categories/media)
4. /
5. mohamedhekal/classbridge

ActiveLibrary[Image &amp; Media](/categories/media)

mohamedhekal/classbridge
========================

Unified Laravel classroom abstraction for live sessions, participants, permissions, and recordings

v0.1.1(1mo ago)011↓75%12MITPHPPHP ^8.2CI failing

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/mohamedhekal/classbridge)[ Packagist](https://packagist.org/packages/mohamedhekal/classbridge)[ Docs](https://github.com/mohamedhekal/classbridge)[ RSS](/packages/mohamedhekal-classbridge/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (11)Versions (3)Used By (2)

ClassBridge
===========

[](#classbridge)

[![CI](https://github.com/mohamedhekal/classbridge/actions/workflows/tests.yml/badge.svg)](https://github.com/mohamedhekal/classbridge/actions)[![Packagist](https://camo.githubusercontent.com/ec4e322f7a8f8d24e088d15e884606931364a12e73d8d0a1b8550974f61d7d39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d656468656b616c2f636c6173736272696467652e737667)](https://packagist.org/packages/mohamedhekal/classbridge)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/c2588b5670f2c910b8cc849ace22a22efda8956b7c2f797d11d2096bbfc7b1f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d3737374242342e737667)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/b38aa2ff655206bfa9f97c1aeced06f25bb3e31fb085fa974c79934c25469f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313125324631322d4646324432302e737667)](https://laravel.com/)

White-label live classroom orchestration for Laravel: sessions, waiting rooms, moderation, attendance, polls, breakouts, whiteboards, recordings, and provider abstraction.

Embeddable live classrooms for Laravel and modern education platforms — video meetings, teacher controls, whiteboards, attendance, recordings, polls, breakout rooms, and provider-based WebRTC integrations.

 [![ClassBridge — white-label live classroom infrastructure](docs/assets/marketing/future-live-learning.png)](docs/assets/marketing/future-live-learning.png)

Installation
------------

[](#installation)

```
composer require mohamedhekal/classbridge
php artisan vendor:publish --tag=classbridge-config
php artisan vendor:publish --tag=classbridge-migrations
php artisan migrate
```

### LiveKit provider

[](#livekit-provider)

```
composer require mohamedhekal/classbridge-livekit
```

Configure in `.env`:

```
CLASSBRIDGE_DRIVER=livekit
LIVEKIT_URL=wss://your-livekit-host
LIVEKIT_API_KEY=...
LIVEKIT_API_SECRET=...
```

### Frontend packages (optional)

[](#frontend-packages-optional)

PackagePurpose`@classbridge/sdk`TypeScript client for session events`@classbridge/whiteboard`Yjs collaborative whiteboard`classbridge-vue`Vue 3 classroom UI`classbridge-web-components`Framework-agnostic ``Architecture
------------

[](#architecture)

 ```
flowchart TB
    subgraph Host["Laravel host app"]
        API["REST API / Filament"]
        CB["ClassBridgeManager"]
        SVC["Services: Session, Poll, Breakout, Whiteboard, Analytics"]
        DB[(MySQL / SQLite)]
    end

    subgraph Providers["Classroom providers"]
        Fake["Fake driver (tests)"]
        LK["LiveKit driver"]
    end

    subgraph Clients["Clients"]
        Vue["classbridge-vue"]
        WC["classbridge-web-components"]
        WB["@classbridge/whiteboard"]
    end

    API --> CB
    CB --> SVC
    SVC --> DB
    CB --> Fake
    CB --> LK
    Vue --> API
    WC --> API
    WB --> API
    LK -. webhooks .-> API
```

      Loading Quick start
-----------

[](#quick-start)

```
use Hekal\ClassBridge\DTOs\CreateSessionData;
use Hekal\ClassBridge\Facades\ClassBridge;

$session = ClassBridge::forTenant('org-1')->session()->create(new CreateSessionData(
    title: 'Intro to Algebra',
    tenantId: 'org-1',
    teacherDisplayName: 'Ms. Smith',
    startsAt: now()->addHour(),
));

ClassBridge::session()->schedule($session, now()->addHour());
ClassBridge::session()->openWaiting($session);
ClassBridge::session()->start($session);

$poll = ClassBridge::polls()->createPoll($session, 'Ready to begin?', ['Yes', 'Not yet']);
ClassBridge::polls()->start($poll);

ClassBridge::session()->end($session);
```

Default driver is `fake` (in-memory). Register LiveKit or custom drivers via `ClassBridge::extend()`.

Features
--------

[](#features)

- Session lifecycle state machine (draft → scheduled → waiting → live → ended)
- Waiting room admit/reject flows
- Signed one-time join tokens
- Role-based moderation (mute, remove, lock, promote)
- Attendance rules and finalization
- Polls, Q&amp;A, breakout rooms, collaborative whiteboards
- Session analytics summary
- Recording start/stop/publish via provider contract
- Multi-tenant session scoping
- Optional REST API under `api/classbridge`
- Optional iframe embed mode (`CLASSBRIDGE_EMBED=true`)
- Optional Filament admin stub (when Filament is installed)

Documentation
-------------

[](#documentation)

- [Architecture](docs/architecture.md)
- [Integration guide](docs/integration.md)
- [Analytics](docs/analytics.md)
- [Embed mode](docs/embed.md)
- [Failure testing (LiveKit)](docs/failure-testing.md)
- [Basic example](examples/basic/README.md)

Testing
-------

[](#testing)

```
composer test
composer analyse
composer format
```

License
-------

[](#license)

MIT © Mohamed Hekal

---

Product Vision
--------------

[](#product-vision)

ClassBridge brings live teaching, collaboration, engagement, and replay into any education platform—without giving up its brand or learner experience.

 [![ClassBridge embedded live classroom platform](docs/assets/marketing/live-classroom-platform.png)](docs/assets/marketing/live-classroom-platform.png) [![ClassBridge all-in-one virtual classroom](docs/assets/marketing/all-in-one-classroom.png)](docs/assets/marketing/all-in-one-classroom.png)

 [![ClassBridge polls, quizzes, reactions, and engagement insights](docs/assets/marketing/student-engagement.png)](docs/assets/marketing/student-engagement.png) [![ClassBridge teacher moderation and classroom controls](docs/assets/marketing/teacher-controls.png)](docs/assets/marketing/teacher-controls.png)

 [![ClassBridge collaborative teaching whiteboard](docs/assets/marketing/teaching-whiteboard.png)](docs/assets/marketing/teaching-whiteboard.png) [![ClassBridge collaborative breakout rooms](docs/assets/marketing/breakout-rooms.png)](docs/assets/marketing/breakout-rooms.png)

 [![ClassBridge synchronized session recording and replay](docs/assets/marketing/session-replay.png)](docs/assets/marketing/session-replay.png) [![ClassBridge white-label live learning infrastructure](docs/assets/marketing/future-live-learning.png)](docs/assets/marketing/future-live-learning.png)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

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

Every ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9d7c092a109fe780c7efd87ce4142eae2c0cec0f92fd1e87e769bec5661953b?d=identicon)[mohamedhekal](/maintainers/mohamedhekal)

---

Top Contributors

[![mohamedhekal](https://avatars.githubusercontent.com/u/21014387?v=4)](https://github.com/mohamedhekal "mohamedhekal (2 commits)")

---

Tags

edtecheducationlaravellivekitlmsmulti-tenantopen-sourcephpsaasvirtual-classroomwebrtcwhiteboardphplaravellaravel-packagevideoeducationedtechclassroomlivekit

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mohamedhekal-classbridge/health.svg)

```
[![Health](https://phpackages.com/badges/mohamedhekal-classbridge/health.svg)](https://phpackages.com/packages/mohamedhekal-classbridge)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3365.5M359](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k17.6M165](/packages/laravel-pulse)[api-platform/laravel

API Platform support for Laravel

58190.1k22](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45945.2k1](/packages/pressbooks-pressbooks)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80732.6M270](/packages/laravel-mcp)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k31.8M166](/packages/laravel-cashier)

PHPackages © 2026

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