PHPackages                             lancers/cakephp-generation-gap-pattern-model-baker - 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. [Framework](/categories/framework)
4. /
5. lancers/cakephp-generation-gap-pattern-model-baker

ActiveCakephp-plugin[Framework](/categories/framework)

lancers/cakephp-generation-gap-pattern-model-baker
==================================================

GenerationGapModelBaker plugin for CakePHP4

1.0.4(4y ago)230.6k↓33.3%1[8 issues](https://github.com/LancersDevTeam/cakephp-generation-gap-pattern-model-baker/issues)MITPHPPHP &gt;=7.2

Since Dec 17Pushed 4y ago44 watchersCompare

[ Source](https://github.com/LancersDevTeam/cakephp-generation-gap-pattern-model-baker)[ Packagist](https://packagist.org/packages/lancers/cakephp-generation-gap-pattern-model-baker)[ Docs](https://github.com/LancersDevTeam/cakephp-generation-gap-pattern-model-baker)[ RSS](/packages/lancers-cakephp-generation-gap-pattern-model-baker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

GenerationGapModelBaker plugin for CakePHP4
===========================================

[](#generationgapmodelbaker-plugin-for-cakephp4)

This is a plugin that uses the Generation gap pattern to realize bakeable Model operations.

The automatic generation tool creates only superclasses. And humans do not modify it. Humans create subclasses of that class. The auto-generator does not manipulate those subclasses.

Generation gap Pattern Reference (Japanese)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require --dev lancers/cakephp-generation-gap-pattern-model-baker

```

To install with `composer.json` , add the following

```
    "require-dev": {
        "lancers/cakephp-generation-gap-pattern-model-baker": "1.*",
    }
```

Usage
-----

[](#usage)

### 1. Add to bootstrap\_cli.php

[](#1-add-to-bootstrap_cliphp)

Add config to load custom template.

```
Configure::write('Bake.theme', 'GenerationGapModelBaker');
```

### 2. Add to Application.php

[](#2-add-to-applicationphp)

This is not necessary in the runtime environment, so addPlugin at debug time.

```
if (Configure::read('debug')) {
    $this->addPlugin('GenerationGapModelBaker');    // add line
    $this->addPlugin('DebugKit');
}
```

### 3. Run bake command to create Models

[](#3-run-bake-command-to-create-models)

```
bin/cake bake extended_model table_name

```

In the case of the examples table, a Model file will be created as follows.

```
$ bin/cake bake extended_model examples
One moment while associations are detected.

Baking table class for Examples...

Creating file /var/www/lancers_admin/src/Model/Baked/Table/ExamplesTable.php
Wrote `/var/www/lancers_admin/src/Model/Baked/Table/ExamplesTable.php`

Baking entity class for Example...

Creating file /var/www/lancers_admin/src/Model/Baked/Entity/Example.php
Wrote `/var/www/lancers_admin/src/Model/Baked/Entity/Example.php`

Baking entended table class for Examples...

Creating file /var/www/lancers_admin/src/Model/Table/ExamplesTable.php
Wrote `/var/www/lancers_admin/src/Model/Table/ExamplesTable.php`

Baking entended entity class for Example...

Creating file /var/www/lancers_admin/src/Model/Entity/Example.php
Wrote `/var/www/lancers_admin/src/Model/Entity/Example.php`

Baking test fixture for Examples...

Creating file /var/www/lancers_admin/tests/Fixture/ExamplesFixture.php
Wrote `/var/www/lancers_admin/tests/Fixture/ExamplesFixture.php`
Bake is detecting possible fixtures...

Baking test case for App\Model\Table\ExamplesTable ...

Creating file /var/www/lancers_admin/tests/TestCase/Model/Table/ExamplesTableTest.php
Wrote `/var/www/lancers_admin/tests/TestCase/Model/Table/ExamplesTableTest.php`
Done

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% 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 ~89 days

Total

5

Last Release

1615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10119220?v=4)[まみー/まみやなおき/mamiya.naoki](/maintainers/mamy1326)[@mamy1326](https://github.com/mamy1326)

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

![](https://avatars.githubusercontent.com/u/6531126?v=4)[Yuki Kanazawa](/maintainers/yKanazawa)[@yKanazawa](https://github.com/yKanazawa)

---

Top Contributors

[![mamy1326](https://avatars.githubusercontent.com/u/10119220?v=4)](https://github.com/mamy1326 "mamy1326 (13 commits)")[![isanasan](https://avatars.githubusercontent.com/u/58712884?v=4)](https://github.com/isanasan "isanasan (3 commits)")[![hassy-haruto](https://avatars.githubusercontent.com/u/62461866?v=4)](https://github.com/hassy-haruto "hassy-haruto (1 commits)")

---

Tags

cakephpbake

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lancers-cakephp-generation-gap-pattern-model-baker/health.svg)

```
[![Health](https://phpackages.com/badges/lancers-cakephp-generation-gap-pattern-model-baker/health.svg)](https://phpackages.com/packages/lancers-cakephp-generation-gap-pattern-model-baker)
```

###  Alternatives

[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[cakephp/debug_kit

CakePHP Debug Kit

86514.0M138](/packages/cakephp-debug-kit)[friendsofcake/bootstrap-ui

Bootstrap front-end framework support for CakePHP

3492.1M32](/packages/friendsofcake-bootstrap-ui)[cakephp/localized

CakePHP Localized Plugin

218595.6k5](/packages/cakephp-localized)[cakephp/acl

Acl Plugin for CakePHP framework

109553.9k15](/packages/cakephp-acl)[cakephp/elastic-search

An Elastic Search datasource and data mapper for CakePHP

86766.6k8](/packages/cakephp-elastic-search)

PHPackages © 2026

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