PHPackages                             ledc/webman - 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. ledc/webman

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

ledc/webman
===========

webman配置模板，一键安装常用组件！

v8.3.13(6mo ago)0671MITPHPPHP &gt;=8.3

Since Oct 10Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/ledccn/ledc-webman)[ Packagist](https://packagist.org/packages/ledc/webman)[ RSS](/packages/ledc-webman/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (32)Versions (36)Used By (1)

webman配置模板，一键安装常用组件！
====================

[](#webman配置模板一键安装常用组件)

安装 Installation
---------------

[](#安装-installation)

```
composer require ledc/webman
```

忽略扩展安装

```
composer require ledc/webman --ignore-platform-req=ext-redis --ignore-platform-req=ext-posix -W
```

运行环境
----

[](#运行环境)

PHP版本：&gt;=8.3

nginx配置
-------

[](#nginx配置)

### 最佳实践，静态文件优先

[](#最佳实践静态文件优先)

```
location ^~ / {
  try_files $uri $uri/ @webman;
}
location @webman
{
  proxy_http_version 1.1;
  proxy_read_timeout 120s;
  proxy_set_header Connection "";
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header REMOTE-HOST $remote_addr;
  proxy_pass http://127.0.0.1:8787;
}

```

### 方案1，静态文件优先

[](#方案1静态文件优先)

```
location ^~ / {
  proxy_http_version 1.1;
  proxy_set_header Connection "";
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  # 代理条件:文件不存在&目录内不存在index.html
  set $should_proxy 1;
  if (-f $request_filename) {
    set $should_proxy 0;
  }
  set $index_file "${request_filename}/index.html";
  if (-f $index_file) {
    set $should_proxy 0;
  }
  # 是否执行代理
  if ($should_proxy = 1) {
    proxy_pass http://127.0.0.1:8787;
  }
}

```

### 方案2，静态文件优先

[](#方案2静态文件优先)

webman官方推荐的方案

```
location ^~ / {
  proxy_http_version 1.1;
  proxy_set_header Connection "";
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  if (!-f $request_filename){
    proxy_pass http://127.0.0.1:8787;
  }
}

```

### 方案3，静态文件优先

[](#方案3静态文件优先)

适合静态打包/pages路径的项目

```
location ^~ / {
  # 默认访问、index.html 或 /pages 开头的路径，返回 index.html
  location ~* (^/$|^/index\.html$|^/pages/) {
    try_files $uri $uri/ /index.html;
  }
  proxy_http_version 1.1;
  proxy_set_header Connection "";
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  if (!-f $request_filename){
    proxy_pass http://127.0.0.1:8787;
  }
}

```

### 长连接

[](#长连接)

```
location = /websocket
{
  proxy_pass http://127.0.0.1:8788;
  proxy_read_timeout 300s;
  proxy_http_version 1.1;
  proxy_set_header Host $host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "Upgrade";
  proxy_set_header X-Real-IP $remote_addr;
}

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance67

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~1 days

Total

35

Last Release

190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (42 commits)")

### Embed Badge

![Health badge](/badges/ledc-webman/health.svg)

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

###  Alternatives

[saithink/saiadmin

webman plugin

2709.9k1](/packages/saithink-saiadmin)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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