PHP Classes

Notable PHP package: PHP Server Sent Events Library

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

Author:

Viewers: 244

Last month viewers: 5

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.




Loaded Article
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

1,611,062 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:



Comments:

No comments were submitted yet.




  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)