Skip to content

cakephp/bake

Folders and files

NameName
Last commit message
Last commit date
Jan 28, 2024
Jan 5, 2025
Nov 21, 2024
Jan 30, 2025
Apr 7, 2025
Apr 7, 2025
Jan 17, 2025
Nov 7, 2020
Apr 26, 2024
Nov 29, 2019
Sep 16, 2023
Dec 6, 2022
Sep 16, 2023
Feb 24, 2025
Sep 16, 2023
Apr 29, 2023
Nov 17, 2024
Jul 2, 2024
May 30, 2023
Oct 16, 2023
May 2, 2023

Repository files navigation

Bake plugin for CakePHP

Build Status Latest Stable Version Coverage Status License

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.

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.

Testing

After installing dependencies with composer you can run tests with phpunit:

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:

UPDATE_TEST_COMPARISON_FILES=1 vendor/bin/phpunit