davislar / daemon
Console daemon
0.1
2019-03-03 19:47 UTC
Requires
- php: ^5.3.0 || ^7.0
This package is not auto-updated.
Last update: 2025-03-25 02:38:13 UTC
README
Install
composer require davislar/daemon
Config
[
'loop' => 5,
'name' => 'WatcherDaemon',
'pidDir' => __DIR__ . '/../runtime/daemon',
'logDir' => __DIR__ . '/../runtime/logs',
'workers' => [
[
'name' => 'TestDaemonJob',
'class' => Davislar\tests\TestDaemonJob::class,
'enabled' => true
]
]
]
Exceptions
Exception codes:
5xxx(Error codes):
5000 - Not set data