This class can be used to used to create Windows service to run daemons.
This is mostly an example of how to start a Windows service using the Win32 PHP extension.
It register the service and starts a loop that goes on forever until the service is instructed to terminate.
In side the service loop the class calls a separate PHP script that can perform an arbitrary task as a thread running in parallel to the service daemon.