silverorange / net_notifier
An asynchronous notification system using WebSockets
Installs: 11 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 14
Forks: 5
Open Issues: 0
Requires
- php: >=5.3.0
- ext-mbstring: *
- pear/console_commandline: ^1.1.10
Suggests
- ext-pnctl: Allows UNIX signals to stop the server.
This package is not auto-updated.
Last update: 2024-11-23 15:53:08 UTC
README
Net_Notifier is a system for sending and receiving messages from PHP programs using WebSockets.
Net_Notifier provides a server for listeing and relaying notifications, a sender, which can send notifications to a server and a listener which can receive relayed notifications from a server.
An example use-case is sending order notifications when an order is placed on an e-commerce site.
Server
Net_Notifier comes with a CLI server for receiving and relaying notifications. It has the following interface:
Service that receives and relays notifications to listening clients. Usage: net-notifier-server [options] Options: -p port, --port=port Optional port on which to listen for notifications. If not specified, port 3000 is used. -v, --verbose Sets verbosity level. Use multiples for more detail (e.g. "-vv"). -h, --help show this help message and exit --version show the program version and exit