NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1315 most downloaded on Packagist
Bake plugin for CakePHP
Latest stable
3.8.1
Last release 3 months ago
29 Jul 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
148 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Add short descriptions to bake commands by @markstory in https://github.com/cakephp/bake/pull/1098
Full Changelog: https://github.com/cakephp/bake/compare/3.8.0...3.8.1
Assign AllCommand subcommands in the constructor (fix uninitialized typed property on CakePHP 5.4) by @dereuromark in https://github.com/cakephp/bake/
Full Changelog: https://github.com/cakephp/bake/compare/3.7.1...3.8.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Skip self-referencing associations for unconstrained keys by @dereuromark in https://github.com/cakephp/bake/pull/1094
Full Changelog: https://github.com/cakephp/bake/compare/3.7.0...3.7.1
Allow using __d() in plugin context. by @dereuromark in https://github.com/cakephp/bake/pull/1039
Full Changelog: https://github.com/cakephp/bake/compare/3.6.3...3.7.0
Skip new migrations tables by @LordSimal in #1084
Full Changelog: 3.6.3...3.6.4
Full Changelog: https://github.com/cakephp/bake/compare/3.6.3...3.6.4
Fix singular/plural variable collision in baked templates - #1075
Full Changelog: 3.6.2...3.6.3
Full Changelog: https://github.com/cakephp/bake/compare/3.6.2...3.6.3
Fix path check on Windows. by @ADmad in #1072
Full Changelog: https://github.com/cakephp/bake/compare/3.6.1...3.6.2
Fix checking references int non-foreign constraints by @othercorey in #1070
Full Changelog: 3.6.0...3.6.1
Full Changelog: https://github.com/cakephp/bake/compare/3.6.0...3.6.1
fix class only generate not working by @LordSimal in #1062
Full Changelog: 3.5.1...3.6.0
Full Changelog: https://github.com/cakephp/bake/compare/3.5.1...3.6.0
Bump twig-view constraint by @josbeir in #1061
Full Changelog: https://github.com/cakephp/bake/compare/3.5.0...3.5.1
Fix up getDisplayField() in relation to Cake 6.0 by @dereuromark in https://github.com/cakephp/bake/pull/1037
Full Changelog: https://github.com/cakephp/bake/compare/3.4.0...3.5.0
Use link instead of uses to avoid PHPUnit clash. by @dereuromark in https://github.com/cakephp/bake/pull/1042
Full Changelog: https://github.com/cakephp/bake/compare/3.3.1...3.4.0
Fixed typo for login controller element by @mirko-pagliai in https://github.com/cakephp/bake/pull/1033
Full Changelog: https://github.com/cakephp/bake/compare/3.3.0...3.3.1
Add note to remove method hooks in generated template if not needed by @LordSimal in https://github.com/cakephp/bake/pull/1005
standalone-path option for plugin commmand. by @ADmad in https://github.com/cakephp/bake/pull/1007Full Changelog: https://github.com/cakephp/bake/compare/3.2.0...3.3.0
Set the pseudo method to "delete" for "Delete" links. by @ADmad in https://github.com/cakephp/bake/pull/1028
Full Changelog: https://github.com/cakephp/bake/compare/3.2.2...3.2.3
Don't ask for plugin path again for a vendor plugin. by @ADmad in https://github.com/cakephp/bake/pull/1027
Full Changelog: https://github.com/cakephp/bake/compare/3.2.1...3.2.2
add note to remove method hooks in generated template if not needed by @LordSimal in https://github.com/cakephp/bake/pull/1005
standalone-path option for plugin commmand. by @ADmad in https://github.com/cakephp/bake/pull/1007Full Changelog: https://github.com/cakephp/bake/compare/3.2.0...3.2.1
Update brick/var-exporter to 0.5.0 and fix deprecations. [3.next] by @nicosp in https://github.com/cakephp/bake/pull/995
Full Changelog: https://github.com/cakephp/bake/compare/3.1.1...3.2.0
Add support and tests for enum comment. by @dereuromark in https://github.com/cakephp/bake/pull/978
Full Changelog: https://github.com/cakephp/bake/compare/3.1.0...3.1.1
Allow baking enums. by @dereuromark in https://github.com/cakephp/bake/pull/968
Full Changelog: https://github.com/cakephp/bake/compare/3.0.6...3.1.0
Fix up phpunit.xml.dist.twig by @dereuromark in https://github.com/cakephp/bake/pull/973
Full Changelog: https://github.com/cakephp/bake/compare/3.0.5...3.0.6
No whitespace on closing tags by @dereuromark in https://github.com/cakephp/bake/pull/955
Full Changelog: https://github.com/cakephp/bake/compare/3.0.4...3.0.5
Fix annotation for entity field mapped to enum type - by @ADmad in https://github.com/cakephp/bake/pull/959
Full Changelog: https://github.com/cakephp/bake/compare/3.0.3...3.0.4
Fix signature for Table::get() annotation. by @ADmad in https://github.com/cakephp/bake/pull/945
@method annotations to cover the actual return type. by @ndm2 in https://github.com/cakephp/bake/pull/956Full Changelog: https://github.com/cakephp/bake/compare/3.0.2...3.0.3
3.x: change composer.json to cake5 stable version by @LordSimal in https://github.com/cakephp/bake/pull/937
Full Changelog: https://github.com/cakephp/bake/compare/3.0.1...3.0.2
* Update to stable dependencies. Full Changelog: https://github.com/cakephp/bake/compare/3.0.0...3.0.1
Full Changelog: https://github.com/cakephp/bake/compare/3.0.0...3.0.1
3.x: remove deprecated BakeHelper::stringifyList method by @LordSimal in https://github.com/cakephp/bake/pull/920
First version compatible with CakePHP 5.0
hasValue() instead of has() by @LordSimal in https://github.com/cakephp/bake/pull/934Full Changelog: https://github.com/cakephp/bake/compare/2.9.3...3.0.0
Add allow-alias-relations option to bake model command by @passchn in https://github.com/cakephp/bake/pull/913
allow-alias-relations option to bake model command by @passchn in https://github.com/cakephp/bake/pull/913Full Changelog: https://github.com/cakephp/bake/compare/2.8.3...2.9.3
Fix stan errors - by @ADmad in https://github.com/cakephp/bake/pull/901
Full Changelog: https://github.com/cakephp/bake/compare/2.8.2...2.8.3
Update regex for finding bake template files. by @ADmad in https://github.com/cakephp/bake/pull/871
Full Changelog: https://github.com/cakephp/bake/compare/2.8.1...2.8.2
Fix twig error baking component by @othercorey in https://github.com/cakephp/bake/pull/870
Full Changelog: https://github.com/cakephp/bake/compare/2.8.0...2.8.1
Support for keeping app-specific functions, properties and constants in model file with the new --update option for bake model
--update option for bake model
Bake.file_header elementHasOne associationsBake.renderer event or BakeCommand::createTemplateRenderer()$force property to CommonOptionsTrait set by the --force optionbake template file extension configurableThe model command now supports a new --update option which tries to update only the generated code in entity and tables files.
The model command now supports a new --update option which tries to update only the generated code in entity and tables files.
Updating will keep any user-specific class member functions, properties and constants while updating all generated code. However, any user-specific code within generated functions, functions and constants will be over-written.
HasOne associations are now detected and generated in table classes.
The header for every generated file can now be customized by overriding the Bake.file_header template.
All bake commands now use BakeCommand::createTemplateRenderer() to create renderer instances. This can be overridden to customize the renderer.
If you only need to add ViewBuilder options such as custom helpers, you can handle the new Bake.renderer event which passes the renderer instances.
Full Changelog: https://github.com/cakephp/bake/compare/2.7.2...2.8.0-RC1
Use generic syntax by @dereuromark in https://github.com/cakephp/bake/pull/846
Full Changelog: https://github.com/cakephp/bake/compare/2.7.1...2.7.2
Fix class not found in plugin test by @nishimura-d in https://github.com/cakephp/bake/pull/823
Full Changelog: https://github.com/cakephp/bake/compare/2.7.0...2.7.1
Fix up templates for generics in docblocks, more precise assoc def. by @dereuromark in https://github.com/cakephp/bake/pull/792
Full Changelog: https://github.com/cakephp/bake/compare/2.6.1...2.7.0
Fixed baking columns that start with an underscore _.
_.Fix cakephp 4.3 deprecations by @othercorey in https://github.com/cakephp/bake/pull/767
CommandHelper bake command by @mentisy in https://github.com/cakephp/bake/pull/763Full Changelog: https://github.com/cakephp/bake/compare/2.5.2...2.6.0
Improve doc blocks in generated code for tests.
Update use of deprecated method. #752
Update use of deprecated method. #752
Add new helper method for exporting vars. #751. If you are have extended bake's commands in your app/plugin and are modifying the array(s) which were
BakeHelper::stringifyList() in the templates then you might have to update your code as per changes in the linked PR.Fix package version constraint being HTML encoded in baked composer.json for plugins. #748
Removed commands to generate shells/tasks. These class types have been long deprecated in CakePHP.
--theme and --force options to bake plugin.bake model.Bake now prefers commands located in the Command\Bake. If your plugin or application has this namespace and directory only commands from that director
Command\Bake. If your plugin or application has this namespace and directory only commands from that directory will be detected as bake commands.Command\Bake namespace.Fixed missing TimestampTimezone field type support.
The --prefix opt was added to bake all.
--prefix opt was added to bake all.string type.Removed usage of TableRegistry from bake internals.
.gitkeep files.Use the Bake plugin prefix instead of manipulating the global paths.
We have switched to the official Twig integration plugin - cakephp/twig-view.
We have switched to the official Twig integration plugin - cakephp/twig-view.
Check out the twig-view release notes to see what's new!
For users that do not use TwigView directly in their application, you don't need to change anything.
For users that have a direct dependency on the previous plugin, wyrihaximus/twig-view, you must remove that package before upgrading to Bake 2.1.0. You cannot require both versions of twig-view and will run into composer errors when upgrading.
For users that have custom TwigView configurations, some code and configuration changes are required. Please see the twig-view documentation for configuration and setup details.
Use templates/bake instead of src/Template/Bake when building theme choices.
templates/bake instead of src/Template/Bake when building theme choices.cakephp/plugin-installer dependency.Add constructor argument to generated tests for behaviors.
TableScanner now supports regex patterns for ignoring tables. This allows it to ignore phinxlog tables in plugins.
controller command now uses AppController base classes in plugins if they exist.
controller command now uses AppController base classes in plugins if they exist.Commands supporting the --force flag now honour it.
--force flag now honour it.testInitialization() method.$modelClass = '' can have tests generated for them.Update to not use deprecated File and Folder classes.
timestampfractional type.Generated plugin classes now include parent calls so that people following older tutorials aren't surprised as often.
Updated TwigView dependency to a stable version.
bake mailer no longer generates empty layout files.
bake mailer no longer generates empty layout files.flash('auth') as it is not used.Updated use of removed method TableSchemaInterface::primaryKey() to new method TableSchemaInterface::getPrimaryKey().
TableSchemaInterface::primaryKey() to new method TableSchemaInterface::getPrimaryKey().Nothing published for this version
One column per quarter.