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

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

blankkids/webman-build
======================

Webman plugin blankkids/webman-build

116PHP

Since Jan 24Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

console
=======

[](#console)

webman-build

DDD 项目结构示例
==========

[](#ddd-项目结构示例)

本项目采用领域驱动设计（DDD）架构，目录结构如下：

项目结构
----

[](#项目结构)

```
src
│   ├── 模块目录
│   │   ├── presentation                # 表示层（负责与用户交互。包含显示信息、解释用户命令）
│   │   │   ├── controller              # 控制器
│   │   │   ├── console                 # 命令行命令
│   │   │   ├── response                # 响应格式处理（JSON、XML）
│   │   │   └── ...
│   │   ├── application                 # 应用层（用来协调用户与各应用以及各应用之间的交互。不包含业务逻辑、不保存业务对象的状态）
│   │   │   ├── logic                   # 逻辑层（协调领域逻辑）
│   │   │   ├── dtos                    # 数据传输对象（请求/响应模型）
│   │   │   ├── validate                # 验证器
│   │   │   ├── jobs                    # 消息队列
│   │   │   ├── transform               # 转换器
│   │   │   ├── mappers                 # 映射（领域对象 ↔ DTO的转换）
│   │   │   └── ...
│   │   ├── domain                      # 领域层（负责表达业务概念，业务状态信息以及业务规则。包含领域模型、领域信息、业务对象的状态。领域层是业务软件的核心）
│   │   │   ├── models                  # 领域模型（聚合根、实体、值对象）
│   │   │   │   ├── aggregate           # 聚合根
│   │   │   │   ├── entity              # 实体
│   │   │   │   ├── valueObjects        # 值对象
│   │   │   │   └── ...
│   │   │   ├── event                   # 事件
│   │   │   ├── factory                 # 工厂
│   │   │   ├── policies                # 权限策略
│   │   │   ├── service                 # 领域服务
│   │   │   ├── error                   # 业务异常值
│   │   │   ├── enum                    # 常量枚举值
│   │   │   ├── repository              # 仓储接口（定义接口，不依赖数据库）
│   │   │   └── ...
│   │   ├── infrastructure              # 基础层（为其他各层提供技术能力。包括为应用层传递消息、为领域层提供持久化机制。基础设施层还能够通过架构框架来支持四个层次间的交互模式。）
│   │   │   ├── model                   # MySql数据模型
│   │   │   ├── repository              # 仓储实现（如操作数据库）
│   │   │   ├── provider                # 第三方服务集成（如支付、短信）
│   │   │   ├── mappers                 # 映射（数据库模型 ↔ 领域对象的转换）
│   │   │   └── ...
│   │   └── ...
│   └── ...
└── ...

```

安装项目
----

[](#安装项目)

```
composer require blankkids/webman-build

```

执行命令
----

[](#执行命令)

```
//创建模块 - 无链接数据库
php webman blankkids-build-module:base
//创建模块 - 链接数据库
php webman blankkids-build-module:base-online

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b3120b684db1e2f1674ee62234fee914b7090e57f9aa9448faea676228e86a6?d=identicon)[blankkids](/maintainers/blankkids)

---

Top Contributors

[![blankkids](https://avatars.githubusercontent.com/u/31361988?v=4)](https://github.com/blankkids "blankkids (2 commits)")

### Embed Badge

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

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

###  Alternatives

[lifo/php-ipc

Simple PHP Inter Process Communication (IPC) library

285.5k](/packages/lifo-php-ipc)[lamoda/enum-bundle

Utility wrapper around PHP-enum

101.6k](/packages/lamoda-enum-bundle)

PHPackages © 2026

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