Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

manel69's avatar

Laravel and Node.js/WebRTC: How exactly put them together?

Hi all,

I'm doing the final project of the career (computer science), also said bachelor work I think. All I want to do is a WebRTC web app. In the most cases, WebRTC needs a Node.js Server with Socket.io as a signaling server.

Initially wanted to do a Laravel 5.4 app (because I use it in my work) for the backend, with the views of UI and logic of WebRTC app in the "js" files. And later, integrate Node.js with its dependencies so that the js files on the Laravel project "find" that need of Node.js (that they are looking for).

My doubt is how exactly do this, I've no idea. How I can "join" or "couple" a Laravel project and node.js project? Where files of one go in the other?

I'm a bit lost, and any kind of help will be well-received, Thanks.

PD1: I started a Laravel app on Heroku and deployed it. If I can "put" Node.js server as WebRTC needs to work, that should be perfect!

PD2: I'm using EasyRTC framework for developing my app, but I tested PeerJS and official WebRTC specification code.

PD3: Sorry for my poor english :(

0 likes
2 replies
snigdho991's avatar

Have you solved this ? Please let me know. I am stuck at this.

ashrafbendary's avatar

there's media server's will help you like 1- meetecho/janus-gateway 2- pion/webrtc 3- ant-media/Ant-Media-Server which is forked from Red5/red5-server

and there's laravel projects on github doing exact the same like 1- PHPJunior/laravel-video-chat 2- RTippin/messenger 3- Mupati/laravel-video-chat

and there's php projects on github like 1- for shared hosting nielsbaloe/webrtc-php

Please or to participate in this conversation.