PHPackages                             pnixx/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pnixx/daemon

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pnixx/daemon
============

Simple Daemon for PHP

1.0.1(9y ago)063MITPHPPHP &gt;=5.6.0

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PNixx/daemon-php)[ Packagist](https://packagist.org/packages/pnixx/daemon)[ RSS](/packages/pnixx-daemon/feed)WikiDiscussions master Synced 1mo ago

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

\#Daemon class for PHP

Simple daemon abstract class

\##Requirements

- PHP 5.6+
- Composer

\##Installation

```
composer require pnixx/daemon
```

\##Usage

```
class Server extends PNixx\Daemon\Daemon {

	public function run() {
		while( !$this->stop ) {
			//working process
		}
	}

	protected function onShutdown() {

	}
}
```

Example run background:

```
example/run -i /path/to/init.php --log_level debug --quiet
```

For list all commands, please use `--help` or `-h` argument.

For restart process after deploy use `--restart` or `-r` argument. A new process will be waiting finish all running processes.

See working example on [Delayed Job](https://github.com/PNixx/delayed_job)

\##Signals

- `QUIT` - Wait finish processing then exit
- `TERM` / `INT` - Immediately kill processes then exit

\##Author

Sergey Odintsov, [@pnixx](https://new.vk.com/djnixx)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02c8f1735bd7e79c5c23264f6339c560683685f8ec5b6090eb950e50bb7f486d?d=identicon)[PNixx](/maintainers/PNixx)

---

Top Contributors

[![PNixx](https://avatars.githubusercontent.com/u/1117351?v=4)](https://github.com/PNixx "PNixx (2 commits)")

---

Tags

phpprocessbackgrounddaemon

### Embed Badge

![Health badge](/badges/pnixx-daemon/health.svg)

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

###  Alternatives

[cocur/background-process

Start processes in the background that continue running when the PHP process exists.

2971.9M12](/packages/cocur-background-process)[arara/process

Provides a better API to work with processes on Unix-like systems

16861.7k2](/packages/arara-process)[braincrafted/background-process

Start processes in the background that continue running when the PHP process exists.

2976.1k1](/packages/braincrafted-background-process)[graze/supervisor

:vertical\_traffic\_light: Process supervisor for PHP.

999.3k](/packages/graze-supervisor)[php-lrpm/php-lrpm

PHP Long Running Process Manager

187.8k1](/packages/php-lrpm-php-lrpm)[kohkimakimoto/background-process

A minimum library to run background processes asynchronously.

361.4k](/packages/kohkimakimoto-background-process)

PHPackages © 2026

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