Server response to AJAX request, or a websocket approach. Do you have media to recommend to learn this ? Thank you

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

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

    Realtime application framework (Node.JS server)

  • If neither works I do not have experience with the next. But a Socket.io type implementation could work. Could make a simple web API in node to handle just the events/web sockets. Can also look around to see if anyone has made any implementations of Socket.Io for php that would work with the Socket.Io JS client library. Here's one, don't know if it works or how well.

  • pusher-http-php

    PHP library for interacting with the Pusher Channels HTTP API

  • If you don't mind a third-party service Pusher PHP is a popular option. Would send the event using PHP with this. Then the Pusher JS Library to handle that data on the front end. Probably the easiest.

  • 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
  • pusher-js

    Pusher Javascript library

  • If you don't mind a third-party service Pusher PHP is a popular option. Would send the event using PHP with this. Then the Pusher JS Library to handle that data on the front end. Probably the easiest.

  • phpsocket.io

    A server side alternative implementation of socket.io in PHP based on workerman.

  • If neither works I do not have experience with the next. But a Socket.io type implementation could work. Could make a simple web API in node to handle just the events/web sockets. Can also look around to see if anyone has made any implementations of Socket.Io for php that would work with the Socket.Io JS client library. Here's one, don't know if it works or how well.

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