PHPackages                             nayjest/symfony-worker-control - 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. [CLI &amp; Console](/categories/cli)
4. /
5. nayjest/symfony-worker-control

ActiveLibrary[CLI &amp; Console](/categories/cli)

nayjest/symfony-worker-control
==============================

Console command for maintaining worker processes

v1.2.2(4y ago)1147[1 PRs](https://github.com/Nayjest/symfony-worker-control/pulls)MITPHP

Since Sep 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Nayjest/symfony-worker-control)[ Packagist](https://packagist.org/packages/nayjest/symfony-worker-control)[ RSS](/packages/nayjest-symfony-worker-control/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (1)Versions (12)Used By (0)

PHP Worker Control
==================

[](#php-worker-control)

Console command for maintaining worker processes.

*Symfony Worker Control* may be used as standalone script or included as lib to existing project.

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

[](#dependencies)

- php5+ | php7+ | hhvm
- symfony/console 3+ package
- pgrep &amp; pkill command-line utilities

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

[](#installation)

**Installation as lib to existing project:**

`composer require nayjest/symfony-worker-control`

**Installation as standalone script:**

`git clone https://github.com/Nayjest/symfony-worker-control.git && cd symfony-worker-control && composer install && chmod +x workers`

Testing
-------

[](#testing)

**Code-style (PSR2):**

1. Install code sniffer:

`composer global require "squizlabs/php_codesniffer=*"`

2. Run code-style tests from symfony-worker-control folder

`composer cs`

**Worker for tests:**

[tests/example-worker.php](https://github.com/Nayjest/symfony-worker-control/blob/master/tests/example-worker.php)

Usage
-----

[](#usage)

`workers [--qty QTY] [-o|--output OUTPUT] [-e|--errors ERRORS] [--]  `

Command may be executed directly (`./workers ...`) or as argument of php command (`php workers ...`).

See `./workers --help` for help.

### Actions

[](#actions)

**start** -- start QTY processes

**restart** -- stop all processes and then start QTY processes

**stop** -- stop all processes

**maintain** -- start QTY - N processes, where N — quantity of currently running processes.

**count** -- print count of running processes

**list** -- print information about running processes

### Options

[](#options)

**--qty=&lt;value&gt;** — specifies quantity of processes to start/restart/maintain If value isn't specified, DEFAULT\_WORKER\_QTY environment variable will be used. if DEFAULT\_WORKER\_QTY isn't defined, qty = 1

**--output=&lt;value&gt; -o &lt;value&gt;** output file for workers (STDOUT + STDERR if --errors not specified), following placeholder: {i} will be replaced to process number. Default value: /dev/null

**--errors=&lt;value&gt; -e &lt;value&gt;** output file for workers (STDERR), following placeholder: {i} will be replaced to process number.

**--quiet -q** Do not output any message

**Help:**`./workers --help`

**Examples:**

`./workers start   --qty=2 "php my_process.php"`

`./workers restart --qty=3 "my_process.php"`

`php workers maintain --qty=4 "php my_process.php"`

`php workers stop "php my_process.php"`

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

© 2017—2018 Vitalii Stepanenko

Licensed under the MIT License.

Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~199 days

Recently: every ~399 days

Total

9

Last Release

1549d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f774898eb3341eff33d07e1b05bccfb69d084831b7ac151d3079e322d0ff6155?d=identicon)[nayjest](/maintainers/nayjest)

---

Top Contributors

[![Nayjest](https://avatars.githubusercontent.com/u/153999?v=4)](https://github.com/Nayjest "Nayjest (28 commits)")[![github-4-work](https://avatars.githubusercontent.com/u/23081744?v=4)](https://github.com/github-4-work "github-4-work (1 commits)")

### Embed Badge

![Health badge](/badges/nayjest-symfony-worker-control/health.svg)

```
[![Health](https://phpackages.com/badges/nayjest-symfony-worker-control/health.svg)](https://phpackages.com/packages/nayjest-symfony-worker-control)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)

PHPackages © 2026

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