Media Streaming with ReactPHP

Yoram Kornatzky
2 min readJul 16, 2022

Whats’ Up with ReactPHP

When I first heard of ReactPHP, a few years ago, it looked very promising.
Providing timers, asynchronous processing, streams, and sockets, all within PHP.

However, in recent years, there seems to be stagnation. While you see commits, you seldom see any publication.

The Framework X is an attempt to make ReactPHP into a micro framework, but I see little mention of it.

Overall, whenever I tried using ReactPHP, I found that it is better to use Laravel and its rich ecosystem.

Streaming with ReactPHP

Building Video Streaming Server with ReactPHP was a nice approach to building a streaming server with ReactPHP, which I could not see how to do as simple in Laravel.

A recent article Streaming ReactPHP in ReactJS revived the topic and showed how you integrate with React.

This got me thinking about how far you can go with ReactPHP in terms of streaming.

A Media Server Design

A media server has three components:

1. Streaming of media files
2. Web interface to select files, login users, and control playback.
3. A backend to manage files and users

--

--

Yoram Kornatzky
Yoram Kornatzky

Written by Yoram Kornatzky

Entrepreneur, Auctibles: https://auctibles.com, 25 years of development experience, Ph.D. Computer Science

No responses yet