Has anyone used WebSockets with PHP? What library do you recommend?

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • pusher-js

    Pusher Javascript library

  • I’ve used https://pusher.com in my early days of PHP. Didn’t had to dig deeper into WebSockets with php.

  • React

    Event-driven, non-blocking I/O with PHP.

  • If you are looking to host the websocket server side and run PHP code then look into ReactPHP. It has nothing to do with ReactJS. There is also Swoole but I haven't used it.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Mercure

    🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications

  • Have a look at mercure.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts