messy-one / daemon
Simple PHP daemon which handles tasks
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/messy-one/daemon
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-10-12 00:04:36 UTC
README
Simple PHP daemon which handles database tasks
Usage
See example folder. There is an implemantation using Doctrine 2 for persisting and Monolog for logging.
How to run
Just run the daemon.php
in a own PHP instance.
I suggest using of a tool for daemonizing approaches. Such a tool could be Supervisor. An example config for Supervisor looks like:
[program:daemon]
command=/usr/bin/php /var/www/myproject/daemon/daemon.php
user=www-data
autostart=true
autorestart=true