xat / notify-php

A PHP Class for sending JSON-RPC Notifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notify-php

Simple Class for sending JSON-RPC notifications as POST-Request. Can for example be used together with notify-bridge to send notifications out of PHP to Browser-Clients (Push notifications).

// Create an an instance,
// using the default configuration
$notify = new Notify();

// Send an update notification
$notify->emit('update');

// Send an update notification
// with some data attached
$notify->emit('update', array('yet another notification'));

For more information just look into the Code of the class. There is not much magic going on.

License

Copyright (c) 2012 Simon Kusterer Licensed under the MIT license.

About

A PHP Class for sending JSON-RPC Notifications


Languages

Language:PHP 100.0%