222

PHP Realtime Resources - Realtime API Hub

 6 years ago
source link: https://realtimeapi.io/hub/php-realtime-resources/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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!

Intaro Pinboard – Intaro Pinboard (Pinba Board) is a realtime PHP monitoring system which aggregates and displays pinba data. Developed on Silex framework and works with PHP 5.3.3 or later.

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

Specs

  • Author: Smart Gamma
  • Date: June 2016

Resources

Synopsis

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.


Ratchet

Specs

  • Websockets for PHP

Resources

Synopsis

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

Specs

  • Author: Gonzalo Ayuso
  • Date: March 2011

Resources

Synopsis

Normally when we are speaking about real-time communications, all the people are thinking about a chat application. I want to build a simpler application. A want to detect when someone clicks on a link. Because of that I will need a combination of HTML, PHP and JavaScript. Let’s start:

For the example I’ll use jquery library, so we need to include the library in our HTML file. It will be a blend of JavaScript and PHP.


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.
    • LiveResource – LiveResource is a protocol specification and JavaScript reference library for receiving live updates of web resources. It has the following principles:
  • 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.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK