Skip to content

primipilus/daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daemon

Composer install

composer require "primipilus/daemon:~2.0"

Usage

class TestDaemon extends \primipilus\daemon\BaseDaemon
{

    protected function process() : void
    {
       // ...
    }
}

$daemon = new TestDaemon(['daemonize' => true, 'runtimeDir' => __DIR__]);

$daemon->start();
// or
$daemon->stop();

About

base daemon class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages