Here are a few examples of simple or dummy servers written using nanoserv, all of them can be run from the command line.

Click on the filename to view the highlighted source code.


dumb_syslog_server.php

Catchable fatal error: Argument 4 passed to Nanoserv\Server_Exception::__construct() must be an instance of Nanoserv\Listener, dumb_syslogger given in /usr/local/lib/php/nanoserv/nanoserv.php on line 1095