The Stream PHP SDK by Stream allows API interaction to access activity streams and news feeds data. Installation with composer is available. Usage demonstrates how to create a new client, set API endpoint, and create a new feed activity.
There are a number of ways of delivering data in real-time but until recently it has looked like PubSubHubbub, with the backing of Google, was going to be the preferred method. However, the past couple of weeks have seen a couple of interesting developments which could indicate that the developer community may actually prefer HTTP Streaming.
RESTful approaches to APIs have made them easier to deploy and consume, leading to a recent explosion in the number of available APIs. One byproduct of such growth is there are a lot of APIs offering similar or even duplicate services, but that have very different approaches to delivering their APIs. Cloud computing and social networking are two areas where we’ve seen the growth in APIs. As the number of APIs grow, the need for interoperability increases.
With the real-time web being claimed by some to be one of the core components of Web 3.0 it's unsurprising that we are seeing more real-time APIs and real-time mashups being developed. One mashup has just been created using Kwwika and Superfeedr to demonstrate how two real-time platforms can be integrated to create a real-time news reader application.