News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Laravel 4 and NodeJs/Redis pub/sub realtime notifications
October 23, 2013 @ 11:48:36

On there's a recent post showing you how to create a real-time notification system with PHP using Laravel, NodeJs and Redis.

Currently I am building an application where we can fill in live scores and I needed something to update all my visitors whenever a score has been updated by one of the admins. Whenever an admin updates the score via the Laravel 4 backend I fire an event and publish it to Redis. I've setup a simple NodeJS server which listens to Redis for incoming changes. NodeJS will redirect the message to all Socket.IO clients.

The post has all of the code and configuration you'll need to reproduce the setup. This includes the Laravel Redis config, code for the event handler and the Node server listening for the socket connection.

0 comments voice your opinion now!
redis realtime notification nodejs socketio laravel tutorial configuration


blog comments powered by Disqus

Similar Posts Create WordPress Plugins with OOP Techniques AJAX and PHP Part 2 - XML Communication/Processing

TechChorus Blog: Create RESTful Applications Using The Zend Framework

SitePoint PHP Blog: Pagination with jQuery, AJAX and PHP

Laravel News: The Artisan Files: Alex Dover

Community Events

Don't see your event here?
Let us know!

community opinion laravel yii2 language project example application series introduction framework part2 podcast composer programming api php7 interview symfony list

All content copyright, 2015 :: - Powered by the Solar PHP Framework