PHPackages                             ichynul/auto-process - 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. ichynul/auto-process

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

ichynul/auto-process
====================

thinkphp extension

1.0.8(1mo ago)2121[1 issues](https://github.com/ichynul/auto-process/issues)Apache-2.0PHPPHP &gt;=7.2

Since Mar 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ichynul/auto-process)[ Packagist](https://packagist.org/packages/ichynul/auto-process)[ Docs](http://www.ynyysc.com/)[ RSS](/packages/ichynul-auto-process/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

简介
--

[](#简介)

自动创建多个`process`对应多个端口，可使用`apache`或`nginx`等做负载均衡。

实现原理：

- `windows` 下webman不支持多进程，使用此插件帮你自动创建多个`process + port`，配合nginx、apache等环境增加并发能力。 相关问题

 、

- `linux` 系统也可以用使用

安装
--

[](#安装)

`composer require ichynul/auto-process`

使用
--

[](#使用)

在配置文件`config/plugin/auto/port/app.php`中调整`process_count`数量。

例如`8`，那将会自动创建`7`不同的端口.

### nginx 代理设置

[](#nginx-代理设置)

和官方配置一样：

在`upstream webman`添加多个server-port

```
upstream webman {
    server 127.0.0.1:8787;
	server 127.0.0.1:8788;
	server 127.0.0.1:8789;
	server 127.0.0.1:8790;
	server 127.0.0.1:8791;
	server 127.0.0.1:8792;
	server 127.0.0.1:8793;
	server 127.0.0.1:8794;
	#...更多
    keepalive 10240;
}
server {
	#...
}
```

### Windows上使用nssm生成网站服务，开机自启，崩溃自启

[](#windows上使用nssm生成网站服务开机自启崩溃自启)

效果图(可选)
-------

[](#效果图可选)

启动后： [![启动后](img/1.png)](img/1.png)任务管理器显示： [![任务管理器显示](img/2.png)](img/2.png)杀死进程模拟程序异常终止： [![杀死进程模拟程序异常终止](img/3.png)](img/3.png)

LICENSE
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance80

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Recently: every ~281 days

Total

8

Last Release

56d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10061650?v=4)[ichynul](/maintainers/ichynul)[@ichynul](https://github.com/ichynul)

---

Top Contributors

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

---

Tags

webman

### Embed Badge

![Health badge](/badges/ichynul-auto-process/health.svg)

```
[![Health](https://phpackages.com/badges/ichynul-auto-process/health.svg)](https://phpackages.com/packages/ichynul-auto-process)
```

###  Alternatives

[yzh52521/webman-task

 dynamic crontab task plugin for webman.

172.0k2](/packages/yzh52521-webman-task)[tinywan/exception-handler

webman exception handler plugin

1610.6k2](/packages/tinywan-exception-handler)

PHPackages © 2026

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