PHPackages                             marmot/marmot-initial - 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. marmot/marmot-initial

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

marmot/marmot-initial
=====================

marmot auto create tool

0.9.3(5y ago)04953MITPHP

Since Jan 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/marmot-cn/marmot-initial)[ Packagist](https://packagist.org/packages/marmot/marmot-initial)[ RSS](/packages/marmot-marmot-initial/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (4)Used By (3)

marmot-initial
==============

[](#marmot-initial)

说明
--

[](#说明)

代码文件初始化工具, 初始化代码会默认`100%`单元测试覆盖率.

### 约束

[](#约束)

- 后端框架(marmot-framework)必须大于`1.1.3`版本

### 使用说明

[](#使用说明)

```
		marmot-initial

	使用方法: marmot-initial xxx . 如: marmot-initial News

marmot-initial Options:

--overwrite: 覆盖已经生成的文件
--namespace=xx: 命名空间, 用于在已有命名空间内生成文件

```

```
在News模块下生成Article模块

vendor/bin/marmot-initial Article --overwrite --namespace=News
```

### 生成代码

[](#生成代码)

生成代码以`News`为例

```
src/News
├── Adapter
│   └── News
│       ├── INewsAdapter.php
│       ├── NewsDbAdapter.php
│       ├── NewsMockAdapter.php
│       └── Query
│           ├── NewsRowCacheQuery.php
│           └── Persistence
│               ├── NewsCache.php
│               └── NewsDb.php
├── Command
│   └── News
│       ├── AddNewsCommand.php
│       └── EditNewsCommand.php
├── CommandHandler
│   └── News
│       ├── AddNewsCommandHandler.php
│       ├── EditNewsCommandHandler.php
│       └── NewsCommandHandlerFactory.php
├── Controller
│   ├── NewsControllerTrait.php
│   ├── NewsFetchController.php
│   └── NewsOperateController.php
├── Model
│   ├── News.php
│   └── NullNews.php
├── Repository
│   └── NewsRepository.php
├── Translator
│   └── NewsDbTranslator.php
├── View
│   ├── NewsSchema.php
│   └── NewsView.php
└── WidgetRule
    └── NewsWidgetRule.php

tests/ut/src/News
├── Adapter
│   └── News
│       ├── NewsDbAdapterTest.php
│       ├── NewsMockAdapterTest.php
│       └── Query
│           ├── NewsRowCacheQueryTest.php
│           └── Persistence
│               ├── NewsCacheTest.php
│               └── NewsDbTest.php
├── Command
│   └── News
│       ├── AddNewsCommandTest.php
│       └── EditNewsCommandTest.php
├── CommandHandler
│   └── News
│       ├── AddNewsCommandHandlerTest.php
│       ├── EditNewsCommandHandlerTest.php
│       └── NewsCommandHandlerFactoryTest.php
├── Controller
│   ├── NewsControllerTraitTest.php
│   ├── NewsFetchControllerTest.php
│   └── NewsOperateControllerTest.php
├── Model
│   ├── NewsTest.php
│   └── NullNewsTest.php
├── Repository
│   └── NewsRepositoryTest.php
├── Translator
│   └── NewsDbTranslatorTest.php
├── Utils
│   ├── MockFactory.php
│   └── NewsUtils.php
└── WidgetRule
    └── NewsWidgetRuleTest.php

tests/mock/News
├── Adapter
│   └── News
│       ├── MockNewsDbAdapter.php
│       └── Query
│           ├── MockNewsRowCacheQuery.php
│           └── Persistence
│               ├── MockNewsCache.php
│               └── MockNewsDb.php
├── CommandHandler
│   └── News
│       ├── MockAddNewsCommandHandler.php
│       ├── MockEditNewsCommandHandler.php
│       └── MockNewsAddCommandHandler.php
├── Controller
│   ├── MockNewsControllerTrait.php
│   └── MockNewsFetchController.php
├── Model
│   └── MockNews.php
└── Repository
    └── MockNewsRepository.php

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

1928d ago

### Community

Maintainers

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

---

Top Contributors

[![marmot-cn](https://avatars.githubusercontent.com/u/2979824?v=4)](https://github.com/marmot-cn "marmot-cn (16 commits)")

### Embed Badge

![Health badge](/badges/marmot-marmot-initial/health.svg)

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

###  Alternatives

[yahnis-elsts/plugin-update-checker

A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.

2.5k1.5M79](/packages/yahnis-elsts-plugin-update-checker)[2bj/phanybar

Control AnyBar from your php

627.4M2](/packages/2bj-phanybar)[ghanem/rating

Rating system for Laravel

8615.5k](/packages/ghanem-rating)[microman/kirby-column-blocks

Use columns in block fields based on the layout field.

422.5k](/packages/microman-kirby-column-blocks)[bangerkuwranger/magento-2-1-3-category-limit-bug-workaround

Workaround for bug from v2.1.3 that arbitrarily limits indexed products in category to 500

1414.0k](/packages/bangerkuwranger-magento-2-1-3-category-limit-bug-workaround)

PHPackages © 2026

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