Library for running php daemons