PHPackages                             comos/qpm - 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. [Framework](/categories/framework)
4. /
5. comos/qpm

ActiveLibrary[Framework](/categories/framework)

comos/qpm
=========

Quick process management framework in PHP. To simplify PHP daemon development

v1.1.0(9y ago)759.1k↓19%23[3 issues](https://github.com/Comos/qpm/issues)GPL-3PHPPHP &gt;=5.3.0

Since Feb 28Pushed 8y ago18 watchersCompare

[ Source](https://github.com/Comos/qpm)[ Packagist](https://packagist.org/packages/comos/qpm)[ Docs](http://github.com/Comos/qpm)[ RSS](/packages/comos-qpm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (3)Versions (10)Used By (0)

QPM [![Build Status](https://camo.githubusercontent.com/b7db980b4d8a6fa4847f892f77db30dc1743c19c7eebf4dddffbc480ce737ed0/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f436f6d6f732f71706d2e706e67)](http://travis-ci.org/Comos/qpm)
===============================================================================================================================================================================================================================================

[](#qpm-)

QPM全名是 Quick(or Q's) Process Management Framework for PHP. PHP 是强大的web开发语言，以至于大家常常忘记PHP 可以用来开发健壮的命令行（CLI）程序以至于daemon程序。 而编写daemon程序免不了与各种进程管理打交道。QPM正是为简化进程管理而开发的类库。

QPM是一个专门针对\*nix CLI编程的框架，不可用于Windows环境和CGI编程。

QPM 目前包括4个主要的子模块：

- Process 基础进程管理,包括fork的面向对象封装；
- Supervision 进程监控,实现了OneForOne、MultiGroupOneForOne 和 TaskFactoryMode 三种模式；
- Pid 支持PID文件管理；
- Log 实现了用于测试的简易文件日志，同时支持接入 Psr 标准的日志实现，例如 Monolog。

examples目录下有若干使用的示例，tests是测试用例所在的目录。

QPM也支持通过Composer安装:`composer require comos/qpm`

也可通过其他方式下载并部署QPM，参考[安装和使用QPM](https://github.com/Comos/qpm/wiki/%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8QPM)。

QPM 运行时，必须使用autoloader，强烈建议使用Composer自带的autoloader，否则需要自行注册autoload回调，可参考：[autoload.php](https://github.com/Comos/qpm/blob/master/bootstrap.php)

通过[Wiki](https://github.com/Comos/qpm/wiki) 可以获取更多信息。

QPM 最新版本是v1.0,与 之前的v0.3有较大的变化，使用时请留意兼容性问题，如果没有修改代码的计划，请不要从v0.3升级到v1.0。

---

QPM’s full name is Quick Process Management Framework in PHP.

PHP is so powerful in web development, that people always forget that it could be used to write robust CLI programs, even daemon programs. Process management is a base of daemon programming. QPM is such a library to simplify process management. QPM is a CLI programming framework based on \*nix systems. It cannot be used in Windows and CGI environment.

There're four main packages:

- Process, the basic process management, includes an OO style encapsulation of pcntl\_fork.
- Supervision, the process supervisor, supports one-for-one mode, multi-group-one-for-one mode and task factory mode.
- Pid manages the PID file to prevent the the daemon is started duplicately.
- Log includes a file based simple Logger as the test purpose. The Logger supports PSR-3, so you can connect QPM to any implementer of PSR-3, such as Monolog.

We provide rich usage samples in ‘examples’ directory.

The library is covered by unit tests well, all the tests are in ‘tests’ directory.

You can install QPM by composer:

```

composer require comos/qpm

```

Notice: the lastest verison v1.0 is not compatible with v0.3. If you're using v0.3 or earlier versions, don't upgrade the library without refactoring and test.

The other ways to get and use QPM, see [Getting Started](https://github.com/Comos/qpm/wiki/Getting-Started).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~114 days

Recently: every ~194 days

Total

8

Last Release

3343d ago

Major Versions

0.3.1 → v1.0.0-alpha2015-03-24

PHP version history (2 changes)0.2.1-alphaPHP &gt;=5.4.0

v1.0.0-alphaPHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65708d37f7a6414bbc8f851f3378588c829c42f26dc6a4bf9e64d9b585d9e3b2?d=identicon)[bigbigant](/maintainers/bigbigant)

---

Top Contributors

[![bigbigant](https://avatars.githubusercontent.com/u/10754591?v=4)](https://github.com/bigbigant "bigbigant (115 commits)")[![13leaf](https://avatars.githubusercontent.com/u/1055787?v=4)](https://github.com/13leaf "13leaf (4 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![Zephor5](https://avatars.githubusercontent.com/u/2234158?v=4)](https://github.com/Zephor5 "Zephor5 (1 commits)")

---

Tags

processdaemon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/comos-qpm/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.0k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M419](/packages/drupal-core-recommended)

PHPackages © 2026

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