PHPackages                             byjg/php-daemonize - 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. byjg/php-daemonize

Abandoned → [byjg/scriptify](/?search=byjg%2Fscriptify)Library[Utility &amp; Helpers](/categories/utility)

byjg/php-daemonize
==================

Transform any class in a \*nix daemon process or cron job without changes or refactoring.

5.0.1(1y ago)511.9k↓28.8%MITPHPPHP &gt;=8.1 &lt;8.4CI failing

Since Jul 30Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/byjg/php-daemonize)[ Packagist](https://packagist.org/packages/byjg/php-daemonize)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-php-daemonize/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (4)Versions (18)Used By (0)

PHP Daemonize
=============

[](#php-daemonize)

[![Build Status](https://github.com/byjg/php-daemonize/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-daemonize/actions/workflows/phpunit.yml)[![Opensource ByJG](https://camo.githubusercontent.com/425c1bbccc0f292bf4d20569ae74a6b2e384fd648f1af8911bc61de9a8dcfc0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e736f757263652d62796a672d737563636573732e737667)](http://opensource.byjg.com)[![GitHub source](https://camo.githubusercontent.com/88e61eb211719144efdd570290a0456b6e13099c2df8d973f1bb43fe33bf0039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769746875622d736f757263652d696e666f726d6174696f6e616c3f6c6f676f3d676974687562)](https://github.com/byjg/php-daemonize/)[![GitHub license](https://camo.githubusercontent.com/a7b21263d2e3356bf357434e35b7fe87a0a3f7ad154b6cabf62cfae459ef244c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62796a672f7068702d6461656d6f6e697a652e737667)](https://opensource.byjg.com/opensource/licensing.html)[![GitHub release](https://camo.githubusercontent.com/40034bc574a71587b36b30320e9d4a5922181f26236451154be8b90a92fd9ff5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62796a672f7068702d6461656d6f6e697a652e737667)](https://github.com/byjg/php-daemonize/releases/)

Transform any class in a \*nix daemon process or cron job without changes or refactoring.

Features
--------

[](#features)

Allow you to do the following without change your pre-existing class:

- Create a \*nix daemon process from any PHP class
- Enable call any get RESt endpoint from the shell script
- Enable call any public method from the shell script

How To:
-------

[](#how-to)

- [Call a PHP method from command line](docs/script.md)
- [Install a PHP class/method call as a daemon](docs/install.md)
- [Call a GET RESt endpoint from command line](docs/endpoint.md)
- [Show the method documentation](docs/showdocs.md)
- [Environment variables](docs/environment.md)
- [Play with the service](docs/play.md)

Install
-------

[](#install)

Daemonize does not need to be associated to your PHP project.

Install locally (preferable):

```
composer require "byjg/php-daemonize"
```

Install as a global composer package:

```
composer global require "byjg/php-daemonize"
sudo ln -s /root/.composer/vendor/bin/daemonize /usr/local/bin/daemonize

# If you want to share this installation with another users consider use the command `chmod a+x /root`.
# The root directory will remain unreadable for them, but you'll can execute the script "daemonize".
```

Dependencies
------------

[](#dependencies)

 ```
flowchart TD
    byjg/daemonize --> symfone/console
```

      Loading ---

[Open source ByJG](http://opensource.byjg.com)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance51

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 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 ~250 days

Recently: every ~130 days

Total

16

Last Release

237d ago

Major Versions

1.3.1 → 4.9.02023-05-21

4.9.1 → 5.0.02024-10-29

5.0.1 → 6.0.x-dev2025-11-09

PHP version history (4 changes)1.0.0PHP &gt;=5.4.0

4.9.x-devPHP &gt;=7.4.0

5.0.0PHP &gt;=8.1 &lt;8.4

6.0.x-devPHP &gt;=8.1 &lt;8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/981924?v=4)[Joao Gilberto Magalhaes](/maintainers/byjg)[@byjg](https://github.com/byjg)

---

Top Contributors

[![byjg](https://avatars.githubusercontent.com/u/981924?v=4)](https://github.com/byjg "byjg (68 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/byjg-php-daemonize/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5186.0k18](/packages/phel-lang-phel-lang)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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