PHPackages                             lichi/deploy\_daemon\_bot - 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. lichi/deploy\_daemon\_bot

ActiveLibrary

lichi/deploy\_daemon\_bot
=========================

Deploy daemon bot

002PHP

Since Dec 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/IvanHunters/deploy_daemon_bot)[ Packagist](https://packagist.org/packages/lichi/deploy_daemon_bot)[ RSS](/packages/lichi-deploy-daemon-bot/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

deploy\_daemon\_bot
===================

[](#deploy_daemon_bot)

Install with composer
=====================

[](#install-with-composer)

```
composer require lichi/deploy_daemon_bot

```

require class
=============

[](#require-class)

```
require "vendor/autoload.php";
use Daemon\Sdk\Init;

```

make anon-s functions before and after pull data
================================================

[](#make-anon-s-functions-before-and-after-pull-data)

```
$afterHandler = $beforeHandler = function (array $filesMap, string $type_pull, array $config) {
    $dirs = $config['dirs'];
    foreach ($filesMap as $path=>$file) {
        if (isset($dirs[$path])) {
            $dirInfo = $dirs[$path];
            if (isset($dirInfo[$type_pull])) {
                $beforePullExecution = $dirInfo[$type_pull];
                if (count($beforePullExecution) > 0) {
                    $resultExecution = [];
                    exec($beforePullExecution, $resultExecution);
                    $this->logger($resultExecution);
                }
            }
        }
    }
    return true;
};

```

Run Init
========

[](#run-init)

```
$deploy = new Init($argv, $beforeHandler, $afterHandler, false);

```

CLI-Commands:
=============

[](#cli-commands)

```
php script init # make config file
php script start # start handle pull-requests

```

Config-file: deploy-config.json
===============================

[](#config-file-deploy-configjson)

```
{
  "branch": "main",
  "dirs":{
    "./":{
      "before_pull":[
        'pm2 stop 0'
      ],
      "after_pull":[
       'pm2 start 0'
      ]
    }
  }
}

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6dc90dea0af427c7501b6494809381ce8716670db9d448dc890b3056b5bb3033?d=identicon)[Lichi](/maintainers/Lichi)

---

Top Contributors

[![IvanHunters](https://avatars.githubusercontent.com/u/49371933?v=4)](https://github.com/IvanHunters "IvanHunters (10 commits)")[![xDevReports](https://avatars.githubusercontent.com/u/13808680?v=4)](https://github.com/xDevReports "xDevReports (5 commits)")

### Embed Badge

![Health badge](/badges/lichi-deploy-daemon-bot/health.svg)

```
[![Health](https://phpackages.com/badges/lichi-deploy-daemon-bot/health.svg)](https://phpackages.com/packages/lichi-deploy-daemon-bot)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
