PHPackages                             wellkit/workerman-bundle - 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. wellkit/workerman-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

wellkit/workerman-bundle
========================

symfony workerman bundle

v2.0.1(3y ago)5131MITPHPPHP &gt;=8.0.2

Since Sep 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/niqingyang/workerman-bundle)[ Packagist](https://packagist.org/packages/wellkit/workerman-bundle)[ Docs](https://github.com/niqingyang/workerman-runtime)[ RSS](/packages/wellkit-workerman-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

workerman-bundle
================

[](#workerman-bundle)

Symfony 的 workerman bundle，支持使用 `symfony runtime` 启动，并且支持通过 `service container` 自定义进程

安装
--

[](#安装)

```
composer require wellkit/workerman-bundle
```

配置
--

[](#配置)

1. 修改文件 `/config/bundles.php`

```
return [
    // ...
    WellKit\WorkermanBundle\WorkermanBundle::class => ['all' => true],
];
```

2. 增加配置文件 `/config/packages/workerman.yaml`

```
workerman:
    # 服务配置
    server:
        # 进程名称
        name: 'Symfony Workerman Server'
        # 监听的协议 ip 及端口 （可选）
        listen: http://0.0.0.0:8000
        # 进程数 （可选，生产环境下默认为 cpu核心数*2，其他环境下默认为1）
        count: ~
        # 进程运行用户 （可选，默认当前用户）
        user: ''
        # 进程运行用户组 （可选，默认当前用户组）
        group: ''
        # 当前进程是否支持reload （可选，默认true）
        reloadable: true
        # 是否开启reusePort （可选，此选项需要php>=7.0，默认为true）
        reusePort: true
        # transport (可选，当需要开启ssl时设置为ssl，默认为tcp)
        transport: tcp
        # context （可选，当transport为是ssl时，需要传递证书路径）
        context: []
        # After sending the stop command to the child process stopTimeout seconds,
        # if the process is still living then forced to kill.
        stopTimeout: 2
        # The file to store master process PID.
        pidFile: '%kernel.project_dir%/var/workerman.pid'
        # Log file.
        logFile: '%kernel.project_dir%/var/log/workerman.log'
        # The file used to store the master process status file.
        statusFile: '%kernel.project_dir%/var/log/workerman.status'
        # Stdout file.
        stdoutFile: '%kernel.project_dir%/var/log/workerman.stdout.log'

    # 自定义进程的 serviceId（功能与声明 `workerman.process` 标签相同）
    # 支持 service 相关配置参数：arguments、properties、factory 等
    # 支持 name、listen、count、user、group、reloadable、reusePort、transport、context 参数设置
    process:
        # 自定义进程的名称
        workerman.xxx:
            # 自定义进程的类，必须声明 onWorkerStart 方法
            class: App\Process\XXX

        # 监听文件变动自动重启
        workerman.monitor:
            class: WellKit\WorkermanBundle\Process\Monitor
            arguments:
                # the base dir
                $basePath: '%kernel.project_dir%'
                # the monitor dirs
                $resource: [ './src/', './config/', './public/', './templates/' ]
                # the file name patterns
                $patterns: [ '*.php', '*.yaml', '*.html', '*.htm', '*.twig' ]
                # the exclude dirs
                $exclude: []
```

启动
--

[](#启动)

在项目根目录下执行

```
APP_RUNTIME=WellKit\\WorkermanBundle\\Runtime php ./public/index.php start
```

参考项目
----

[](#参考项目)

-
-
-

许可证
---

[](#许可证)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

4

Last Release

1330d ago

Major Versions

v1.0.1 → v2.0.02022-09-22

### Community

Maintainers

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

---

Top Contributors

[![niqingyang](https://avatars.githubusercontent.com/u/5036407?v=4)](https://github.com/niqingyang "niqingyang (13 commits)")

---

Tags

symfony-bundlesymfony-runtimeworkermansymfonyruntimeworkermanphp-runtime

### Embed Badge

![Health badge](/badges/wellkit-workerman-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/wellkit-workerman-bundle/health.svg)](https://phpackages.com/packages/wellkit-workerman-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[luzrain/workerman-bundle

Workerman runtime for symfony applications

281.9k](/packages/luzrain-workerman-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)

PHPackages © 2026

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