PHPackages                             citysites/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. citysites/yii2-daemon

ActiveYii2-extension

citysites/yii2-daemon
=====================

Extension provides functionality for simple daemons creation and control

v1.0.0(11mo ago)02BSD-3-ClausePHP

Since Mar 17Pushed 11mo ago5 watchersCompare

[ Source](https://github.com/citysites/yii2-daemon)[ Packagist](https://packagist.org/packages/citysites/yii2-daemon)[ RSS](/packages/citysites-yii2-daemon/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (12)Used By (0)

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

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

Extension provides functionality for simple daemons creation and control. There is also a daemons supervisor.

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

[](#installation)

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

Either run

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

```

or add

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

```

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

### Setting WatcherDaemon (Supervisor)

[](#setting-watcherdaemon-supervisor)

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 your console controllers path file for ex. DaemonsSupervisorController.php with following content:

```
