This section highlights the realtime resources available for PHP developers.
PHP Realtime Libraries
PushRadar’s official PHP library, wrapping the PushRadar API – PushRadar is a realtime notifications API service for the web. The service uses a simple publish-subscribe model, allowing you to broadcast “notifications” on “channels” that are subscribed to by one or more clients. Notifications are pushed in realtime to those clients.
Real-time log debugger – Simple and Lightweight real-time log debugger via Websocket with Nodejs, SocketIO and Restful API to feed log (PHP, Python…)
This project turnkey is distributed as a middleware to expose RATP realtime data as REST resources – This project turnkey is distributed as a middleware to expose RATP data as REST resources. You can retrieve real time schedules for any given RER (train), Metro, Tramway, Bus or Noctilien stop in real time.
A PHP API wrapper for ORTC – It’s an unofficial client for ORTC (Open Real-Time Connectivity, realtime & cloud-based pub/sub framework from realtime.cofor PHP 5.4+), but yet powerful, composer based and compatible with psr-1, psr-2 and psr-4.
An useful PHP script to provide user friendly JSON result for Tainan Bus realtime data – With this api, you can get the realtime position of all the bus in Tainan!
PHPench: Realtime benchmarks for PHP code – PHPench creates a graphical output for a PHP benchmark. Plot the runtime of any function in realtime with GnuPlot and create an image out of the result. Algorithms are beautiful. Sometimes the difference between two algorithms is hard to explain but easy to show. For instance, take two sorting algorithms which both have a best-case runtime of
O(n*log n). Depending on the input, one can be much faster than the other. This tools helps you see what’s going on.
PHP-long-polling: An extremely simple example of a “real-time” self-updating page using long-polling – A very simple demonstration of long-polling with AJAX (jQuery) and PHP. Long-polling makes near “real-time” applications possible. The client does not request new data every X seconds/minutes, the client gets new data delivered when there is new data (push-notification style).
PHP-gif: Easy generating (real-time) GIF images with PHP – An ideal solution for sending e-mails with real-time data to customers. E-mail clients give you the opportunity to load images by URL and so everytime the client re-opens the e-mail message, the GIF will be re-generated with real-time data.
Laravel-pushover: A Laravel wrapper for Pushover – Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Pebble, Android Wear, and Apple watches, too!)
PHPchess – Chess website script for real-time and correspondence play using mysql5 and php 5+
Laravel Micro Manager – Oversee jobs you have put into the queue. Track status, completion % and other job information in real time.
Real-Time Web applications with PHP and Ratchet
- Author: Smart Gamma
- Date: June 2016
This post is a set of approaches and rules that SmartGamma uses for building real-time web applications. Our real-time solutions mostly based on articles and recommendations of Phil Leggetter — a real-time web evangelist and consultant. His articles give us a very clear understanding of real-time web technologies that we can use to build such real-time applications.
- Websockets for PHP
Ratchet is a loosely coupled PHP library providing developers with tools to create real time, bi-directional applications between clients and servers over WebSockets. This is not your Grandfather’s Internet.
Real Time Notifications With PHP
- Author: Gonzalo Ayuso
- Date: March 2011
Realtime Infrastructure Services
- Realtime API Infrastructure – Realtime API infrastructure specifically allows developers to build realtime data push into their existing APIs. Typically, you would not need to modify your existing API contracts, as the streaming server would serve as a proxy. The proxy design allows these services to fit nicely within an API stack. This means it can inherit other facilities from your REST API, such as authentication, logging, throttling, etc. It can be combined with an API management system. In the case of WebSocket messages being proxied out as HTTP requests, the messages may be handled statelessly by the backend. Messages from a single connection can even be load balanced across a set of backend instances.
- Fanout/Pushpin – Fanout is a real-time API development kit that helps you push data to connected devices easily. Fanout is a cross between a reverse proxy and a message broker. Pushpin is the open source version.
- Streamdata.io – Streamdata.io a SaaS API proxy tool that converts standard API requests into a streaming API. In other words, it provides a proxy as a service for any HTTP API by polling and acting as a streaming API.
- Realtime Application Infrastructure – Realtime app infrastructure sends data to browsers and clients. It typically uses pub/sub messaging, webhooks, and/or websockets — and is separate from an application or service’s main API.
- Firebase – Firebase is a BaaS (Backend-as-a-Service) that allows developers to create web applications with no server-side programming required.
- Pubnub – PubNub is a programmable Data Stream Network (DSN) and realtime infrastructure-as-a-service (IaaS) company. Primarily, they are a messaging solution hosted on a cloud service that allows developers to publish data instantly to one or multiple devices.
- Pusher – Pusher is a hosted service that allows developers to add realtime bi-directional functionality via WebSockets (with HTTP-based fallbacks) to the web and mobile apps.
- Ably – Ably is a realtime data delivery platform that provides creators the tools to create, deliver, and manage projects. Their main realtime functionality consists of pub/sub, presence, authentication, encryption, and connection state recovery.