Feeds For Your PHP App

If you’re looking to integrate social feeds, notifications and activity streams into your PHP app, view the Stream for PHP client on Github (PHP 5.4 support and PHP 7 Compatible)

Start Hacking
AVERAGE STATS

Build Better Apps, Faster

Stream is the fastest feed service
Stream is used for companies that need feeds that scale
Stream is the fastest feed service
DEVELOPERS

Interactive Demo

Try the API

Build Social Networks with PHP

Whether you want to build social PHP feeds like Twitter, Instagram, Spotify or Facebook we have you covered! Stream handles the technology for the feed and you keep full control over the user experience and design.

PHP Aggregated Feeds, Ranked Feeds, feed specific analytics and personalization all help you improve your app's engagement, retention and conversion. Add PHP Personalized Feeds into your app.

Working with Stream in the PHP language

PHP was first created in 1994 and is one of earliest and most popular languages for building dynamic web applications. In fact, thanks to the popularity of Wordpress it’s now recognised that 25% of all websites are It’s a great choice for building a Stream powered sites that feature timelines, activity and notification feeds.

The language is well known for being easy to learn. PHP 7 from 2014-15 made some major changes to modernise, improve the language and make it easier to work with. There are also virtually endless options for well priced hosting to keep costs down.

When it comes to building social features into special purpose apps or entire social networks, PHP is a fine choice. In fact, several of the most popular social networks are built with PHP. Facebook is by far the most obvious example and their fork of PHP, known as HHVM allowed them to scale to 1 billion users. Flickr and Tumblr are two other great examples of social applications that grew rapidly and scaled to millions of users with PHP. It makes perfect sense to go with a language that’s already been proven by the sites that pioneered these features and user experiences.

With PHP as a starting point, there are many great frameworks built around the PHP language to simplify and speed up development of your Stream powered applications. We have worked with and can recommend the following:

Laravel (see our Laravel guide). There is also Symfony, CodeIgniter, Zend.

Getting started: open source API Client

We first started work on an open source PHP API client for Stream in June 2014. Since that time we’ve worked with support from the open source community to keep the in line and well tested with all the latest Stream APIs. We also aim to follow the evolving best practices in the PHP developer community.

The Client API project features a comprehensive phpunit unit test suite and stable Composer packages are published to the Packagist repository. See the stream-php Github project for full details. Contributions in the form of issues, feature suggestions and pull requests are most welcome.

Further Reading

API for Feeds

Stream is an API for building scalable news feeds and activity streams. Try it out in this 5 minute interactive tutorial. To run the examples you'll need an API key. Register to continue...

var client = stream.connect('GET YOUR KEY');
var chrisFeed = client.feed('user', 'chris');
// Add the activity to the feed
chrisFeed.addActivity({
actor: 'chris',
verb: 'add',
object: picture:10,
message: 'Working on improving the user experience of the Stream Dashboard...'
});
Flexible Implementation