PHPackages                             pggns/cakephp-cleaner-bake - 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. [Templating &amp; Views](/categories/templating)
4. /
5. pggns/cakephp-cleaner-bake

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

pggns/cakephp-cleaner-bake
==========================

CakePHP plugin that adds some cleaner Bake Templates

1.7.0(2y ago)091MITTwigPHP &gt;=8.2

Since Mar 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pggns/cakephp-cleaner-bake)[ Packagist](https://packagist.org/packages/pggns/cakephp-cleaner-bake)[ RSS](/packages/pggns-cakephp-cleaner-bake/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (22)Used By (0)

CakePHP plugin that adds some cleaner Bake Templates
====================================================

[](#cakephp-plugin-that-adds-some-cleaner-bake-templates)

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

[](#installation)

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

The recommended way to install the composer packages is:

```
composer require --dev pggns/cakephp-cleaner-bake

```

Then add the following line to `src/Application.php`:

```
$this->addPlugin('Pggns/CleanerBake');

```

How to use the templates?
-------------------------

[](#how-to-use-the-templates)

To automatically use the templates in every bake command, add the following line to your `config/bootstrap.php`:

```
Configure::write('Bake.theme', 'Pggns/CleanerBake');

```

To manually use them in only some bake commands, just add `--theme Pggns/CleanerBake`.

What do the templates change?
-----------------------------

[](#what-do-the-templates-change)

These templates don't change the output in a functional way, only cosmetic changes are made:

- Replaces 4 spaces with tabs
- Moves opening brackets `{` to the end of the line
- Aligns arrays
- Add some new lines to make the files more organized
- Some other minor changes

### Before:

[](#before)

```
