Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Media Streaming with ReactPHP
Yoram Kornatzky
Yoram Kornatzky

Posted on • Edited on • Originally published atyoramkornatzky.com

     

Media Streaming with ReactPHP

Whats' Up with ReactPHP

When I first heard ofReactPHP, 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.

TheFramework 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 useLaravel 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 articleStreaming ReactPHP in ReactJS revived the topic and showed how you integrate withReact.

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

While ReactPHP is very good for the streaming part, web application programming with ReactPHP is not common and lacks an ecosystem of build tools and libraries.

This is especially apparent if you want to build a dynamic modern interface, the way you do nowadays with a Single Page Application (SPA).

So it would seem natural to wrap the ReactPHP in a Laravel application. Laravel is well suited for managing files, including file upload, and has built-in user management.

The web interface will be built by either some SPA framework such as React orVue orLaravel Livewire andAlpineJS.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Entrepreneur. Co-Founder Auctibles. Developing: auctions, marketplaces, PHP, Laravel. 25 years of dev experience. Ph.D. Computer Science.
  • Location
    Warsaw, Poland
  • Education
    Ph.D. Computer Science
  • Work
    Entrepreneur and Freelance Consultant
  • Joined

More fromYoram Kornatzky

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp