How good does ajax long polling work in PHP?

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

Our great sponsors
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • WorkOS - The modern API for authentication & user identity.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Ratchet

    Asynchronous WebSocket server (by ratchetphp)

    Have you considered using web sockets? Check out Ratchet PHP http://socketo.me/. Once the client and server make a connection your server can send notifications to the client while that connection is open.

  • php-sse

    A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.

    Good call. Forgot about server side events! This package looks pretty good for SSE https://github.com/hhxsv5/php-sse

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

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