PHPackages                             tectiv3/libdaemon - 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. tectiv3/libdaemon

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

tectiv3/libdaemon
=================

05PHP

Since Aug 22Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yet another PHP daemon lib
==========================

[](#yet-another-php-daemon-lib)

Create and run php daemon with custom workers

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

[](#installation)

**Installation**

`composer require tectiv3/libdaemon`

Define workers and run your daemon
----------------------------------

[](#define-workers-and-run-your-daemon)

**Define workers**

```
use Daemon\Worker;

class ExampleWorker extends Worker {
	function run_cycle() {
	    echo "I'm a work horse!\n";
    }
}

```

**Create config**

```
[default]
    logfile = "daemon.log"
    pidfile = "daemon.pid"
    daemonize = true
    worker_class = "ExampleWorker"
    max_children = 2

```

**Run daemon**

```
    $master = new Master('config.ini', 3600); //restart workers every hour
    $master->start();

```

Examples
--------

[](#examples)

Examples can be found in the `examples/` folder

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/1974189?v=4)[tectiv3](/maintainers/tectiv3)[@tectiv3](https://github.com/tectiv3)

### Embed Badge

![Health badge](/badges/tectiv3-libdaemon/health.svg)

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

###  Alternatives

[cyrkulewski/shopping-cart

Simple ZF2 Shopping Cart

192.1k](/packages/cyrkulewski-shopping-cart)

PHPackages © 2026

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