News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Real-time Apps with Laravel 5.1 and Event Broadcasting
June 10, 2015 @ 11:53:38

SitePoint's PHP Blog has a new tutorial posted showing you how to use event broadcasting in Laravel 5 to perform actions based on events the application issues.

In Laravel 5.1, the framework includes functionality called broadcasting events that makes it easy to create real-time apps in PHP. With this new functionality, an app can publish events to various cloud-based real-time PubSub solutions, like Pusher, or to Redis.

They start you off installing their sample application inside of a Homestead Improved virtual machine. They show you how to use the non-realtime version of the application and how the other parts of the application do not update when changes are made. They then create the ItemCreated, ItemUpdated and ItemDeleted events and the related data provider needed to "boot" the events. From there they walk you through installing the Pusher PHP library, including the matching Javascript file and a bit of code to push events and receive them in other parts of your application.

0 comments voice your opinion now!
tutorial laravel5 realtime application pusher event broadcasting

Link: http://www.sitepoint.com/real-time-apps-laravel-5-1-event-broadcasting/

Community News:
Pusher Challenge (Make Your App Realtime)
October 11, 2011 @ 13:57:34

The folks over at Pusher (the real-time push notification service) have announced a contest they're holding for developers (not just PHP either) to enter for a shot at a MacBook Air and a ticket to the Keeping it Realtime Conference - the "Pusher Challenge".

We believe you can massively improve the user experience and engagement of your existing applications by making them realtime. Pusher lets you do that quickly and simply with our hosted API. In the Pusher challenge, we want to see the innovative ways you can turbo-charge your apps with a sprinkling of Pusher magic.

Pusher uses Websockets to handle the notifications. You can sign up for a developer account to get the development ball rolling but the deadline is midnight (GMT) on October 16th (just five days away!) so dive in and get realtime quickly for your chance to win!

0 comments voice your opinion now!
pusher challenge contest macbookair krtconf conference ticket


NetTuts.com:
Getting Real-Time with Pusher
October 05, 2011 @ 08:39:52

On NetTuts.com today there's a new tutorial showing you how to implement the Pusher service that gives you real-time messaging for your application. Their backend for the project is written in PHP using Pusher's library.

Do you want to spice up your web applications by making them real-time - but don't want to create new infrastructures for the sole purpose of getting web sockets to work? In this article, we'll explore how to use and implement Pusher, an HTML5 WebSocket-powered real-time messaging service for your applications.

Pusher uses HTML5 WebSockets to handle the messaging, so you'll need a browser that supports it to follow along with the tutorial. The Pusher API provides and endpoint for authorization and the push and pull of messages. In the tutorial, they create a simple chat application that gives a "Who's Online" and a window with the latest messages. You can download the full source (Javascript and PHP) here or view a demo here.

2 comments voice your opinion now!
realtime messaging pusher service websockets tutorial



Community Events

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


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

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework