PHPackages                             dromok/yii2-daemon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. dromok/yii2-daemon

ActiveYii2-extension[CLI &amp; Console](/categories/cli)

dromok/yii2-daemon
==================

Extension provides functionality for simple daemons creation and control

0.1(10y ago)0329BSD-3-ClausePHP

Since Mar 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dromok/yii2-daemon)[ Packagist](https://packagist.org/packages/dromok/yii2-daemon)[ RSS](/packages/dromok-yii2-daemon/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Daemons system for Yii2
=======================

[](#daemons-system-for-yii2)

Extension provides functionality for simple daemons creation and control

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist dromok/yii2-daemon "*"

```

or add

```
"dromok/yii2-daemon": "*"

```

to the require section of your `composer.json` file.

### Setting WatcherDaemon

[](#setting-watcherdaemon)

WatcherDaemon is the main daemon and provides from box. This daemon check another daemons and run, if it need. Do the following steps:

1. Create in you console controllers path file WatcherDaemonController.php with following content:

```
