PHPackages                             kaiseki/scaffold-module - 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. kaiseki/scaffold-module

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

kaiseki/scaffold-module
=======================

Scaffold a kaiseki module

1.0.0(1mo ago)015proprietaryPHPPHP ^8.2CI passing

Since Jun 2Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-scaffold-module)[ Packagist](https://packagist.org/packages/kaiseki/scaffold-module)[ Docs](https://github.com/kaisekidev/kaiseki-scaffold-module)[ RSS](/packages/kaiseki-scaffold-module/feed)WikiDiscussions master Synced 2d ago

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

kaiseki/scaffold-module
=======================

[](#kaisekiscaffold-module)

Scaffold a Kaiseki WordPress or Core module.

This is a `composer create-project` template, not a library. Running it interactively generates a new `kaiseki/*` package — WordPress or Core — already on the org baseline (PHP `^8.2`, PHPStan 2, PHPUnit 11, the shared reusable CI workflow, Dependabot, and changelog automation).

Installation
------------

[](#installation)

```
composer create-project --no-dev kaiseki/scaffold-module
```

The `post-create-project` hook runs `bin/console bootstrap-module`, which asks for the module type (wordpress | core), name, namespace, config base key, repo URL, and copyright holder, then rewrites the checkout into the generated module and runs `composer update`.

Usage
-----

[](#usage)

Answer the prompts; the resulting package is ready to `git init`, push, and open its first PR against. A scaffolded module ships the canonical CI caller verbatim, which runs the full suite — phpunit + a 100% coverage gate across PHP 8.2/8.3/8.4. A fresh module has no tests yet, so its first CI run goes red until you either add tests or uncomment the per-package override in the generated `.github/workflows/checks.yml` (`run-tests: false` for static analysis only, or `coverage-threshold: 0` to relax the gate while coverage catches up).

Org-wide baselines
------------------

[](#org-wide-baselines)

This repo is the canonical home for two static baseline files that every `kaiseki/*` package (and `kaiseki-org`'s tooling, e.g. `apply-dependabot-config.sh`) copies in. Edit them here:

- **`templates/phpunit.xml`** — the single PHPUnit 11 baseline for all modules. It carries a `%test_namespace%` placeholder that the scaffold fills in at generate time (WordPress modules nest tests under an extra `WordPress\`segment; core modules don't), so there's one file instead of a per-type copy.
- **`templates/shared/.github/dependabot.yml`** — the single Dependabot baseline. Dev deps and GitHub Actions are each grouped into one weekly PR; runtime deps get individual PRs. Production-major holds are a deliberate per-package choice (`ignore:`), not baked into the baseline.

The two CI caller workflows the scaffold emits (`.github/workflows/checks.yml`and `update-changelog.yml`) are **not** owned here, and the scaffold keeps **no copy** of them. `bin/console bootstrap-module` fetches them verbatim from the canonical org starter workflows in [kaisekidev/.github](https://github.com/kaisekidev/.github/tree/master/workflow-templates)at generate time, so that public repo is the single source of truth and the callers can never drift. (This means generating a module requires network access to `.github`; there is no offline fallback. Edit the callers in `.github`.)

Development
-----------

[](#development)

```
composer check            # check-deps + cs-check + phpstan
composer cs-fix           # apply php-cs-fixer fixes
```

`test-create-module.sh  ` generates a throwaway module from a local branch so you can verify template changes end to end. Never run `bin/console bootstrap-module` in this checkout directly — it rewrites the repo.

License
-------

[](#license)

Proprietary. Copyright © Kaiseki.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance95

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (6 commits)")[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

wordpressmodule

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-scaffold-module/health.svg)

```
[![Health](https://phpackages.com/badges/kaiseki-scaffold-module/health.svg)](https://phpackages.com/packages/kaiseki-scaffold-module)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5186.0k18](/packages/phel-lang-phel-lang)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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