Notable PHP package: PHP Server Sent Events Library

Recommend this page to a friend!
  PHP Classes blog     Notable PHP package: ...   Post a comment   See comments (0)   Trackbacks (0)  


Viewers: 310

Last month viewers: 1

Categories: Notable Packages

Server sent events are events that happen on the server side and are notified immediately to the browser accessing the current page.

This package makes it easy to dispatch server side events to the browser by calling functions with the name of the events you want to dispatch.

On the browser side it handles the events with JavaScript handler functions that are called when the a server side event notification is received.

Read this article to learn more details about how this notable PHP package works.

The package PHP Server Sent Events Library is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Send data of server events to the browsers

Here follows in more detail what it does:

This package can send data of server events to the browsers.

It provides a PHP class and a jQuery plugin to respond to browser requests to listen to events happening on the server.

The PHP class calls a given callback function that can call the class functions with arbitrary names and marshals the function name as the event name and the respective parameters to the browser in JSON format.

On the browser side the jQuery plugin can register handler functions for each type of server side event that may happen.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.

You need to be a registered user or login to post a comment

Login Immediately with your account on:



No comments were submitted yet.

  PHP Classes blog     Notable PHP package: ...   Post a comment   See comments (0)   Trackbacks (0)  

For more information send a message to info at phpclasses dot org.