https://github.com/cakephp/bake
The Bake Command Plugin
https://github.com/cakephp/bake
cakephp cakephp-plugin code-generation php
Last synced: 7 months ago
JSON representation
The Bake Command Plugin
- Host: GitHub
- URL: https://github.com/cakephp/bake
- Owner: cakephp
- License: other
- Created: 2014-12-08T19:22:54.000Z (about 11 years ago)
- Default Branch: 3.x
- Last Pushed: 2025-06-07T09:50:16.000Z (7 months ago)
- Last Synced: 2025-06-11T14:18:07.206Z (7 months ago)
- Topics: cakephp, cakephp-plugin, code-generation, php
- Language: PHP
- Size: 6.48 MB
- Stars: 111
- Watchers: 35
- Forks: 102
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-cakephp - Bake plugin - Provides code generation functionality. (Templating)
README
# Bake plugin for CakePHP

[](https://packagist.org/packages/cakephp/bake)
[](https://codecov.io/github/cakephp/bake)
[](LICENSE.txt)
This project provides the code generation functionality for CakePHP. Through a
suite of CLI tools, you can quickly and easily generate code for your application.
## 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 cakephp/bake
```
## Documentation
You can find the documentation for bake [on its own cookbook](https://book.cakephp.org/bake/3).
## Testing
After installing dependencies with composer you can run tests with `phpunit`:
```bash
vendor/bin/phpunit
```
If your changes require changing the templates that bake uses, you can save time updating tests, by
enabling bake's 'overwrite fixture feature'. This will let you re-generate the expected output files
without having to manually edit each one:
```bash
UPDATE_TEST_COMPARISON_FILES=1 vendor/bin/phpunit
```