PHPackages                             php-alchemist/barbas - 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. php-alchemist/barbas

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

php-alchemist/barbas
====================

PHP daemon library

v1.0.0(2y ago)011BSD-3-ClausePHPPHP &gt;=8.2

Since Oct 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PHP-Alchemist/barbas)[ Packagist](https://packagist.org/packages/php-alchemist/barbas)[ RSS](/packages/php-alchemist-barbas/feed)WikiDiscussions main Synced 1mo ago

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

Barbas
======

[](#barbas)

PHP Daemon

Abstract
--------

[](#abstract)

Barbas the PHP Daemon was started as a proof of concept for an old project for which a cron job just wasn't the right. The idea was to create a way to daemon-ize a PHP process.

With recent changes to PHP optimizing the runtime has allowed for this idea to be dusted off.

State
-----

[](#state)

Barbas is currently in an active development state

Examples
--------

[](#examples)

Within the `examples` folder, there are two folders. First, is a simplified usage, and second a classBased daemon.

### Simplified

[](#simplified)

The simplified usage where only core functionality exists within the execute function and the daemonization is done in the file.

### Class Based

[](#class-based)

The classBased example encapsulates the daemonization into the execute functionality. Which is typically more memory intensive, especially if used within a framework.

Docs
----

[](#docs)

### Daemon Structure

[](#daemon-structure)

#### construct

[](#construct)

Accepts two variables sleepTime and timeLimit.

- sleepTime - default: 600 (ten minutes in seconds) -- the amount of time between each execution
- timeLimit - default: 0 -- the time limit before script times out

#### configure

[](#configure)

Any prework configuration goes here

#### execute

[](#execute)

Location for the scope of work to be done should exist here.

#### Other methods

[](#other-methods)

Developers can implement their own methods to insert other objects or set variables for use on the class.

### Usage

[](#usage)

Create your own Daemon class by either extending `\PHPAlchemist\Barbas\AbstractDaemon` or implementing `\PHPAlchemist\Barbas\Contract\DaemonInterface`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f32ae1f0bf9491a59f474478c6344e37034667512769884f00d31c8d1568757?d=identicon)[druid628](/maintainers/druid628)

---

Top Contributors

[![mbreedloveTNS](https://avatars.githubusercontent.com/u/141159175?v=4)](https://github.com/mbreedloveTNS "mbreedloveTNS (6 commits)")[![druid628](https://avatars.githubusercontent.com/u/522820?v=4)](https://github.com/druid628 "druid628 (3 commits)")

### Embed Badge

![Health badge](/badges/php-alchemist-barbas/health.svg)

```
[![Health](https://phpackages.com/badges/php-alchemist-barbas/health.svg)](https://phpackages.com/packages/php-alchemist-barbas)
```

PHPackages © 2026

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