mixerapi/bake

A bake template for RESTful CakePHP controllers

Maintainers

Details

github.com/mixerapi/bake

Source

Issues

Installs: 47 471

Dependents: 1

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 1

Type:cakephp-plugin

v2.0.3 2024-02-17 22:15 UTC

README

Latest Version on Packagist Build Coverage Status MixerApi CakePHP Minimum PHP Version

Bake RESTful CakePHP controllers in seconds with this API focused bake template. Read more at MixerAPI.com.

Installation

!!! note "" You can skip this step if MixerAPI is installed.

composer require mixerapi/bake
bin/cake plugin load MixerApi/Bake

Alternatively after composer installing you can manually load the plugin in your Application:

# src/Application.php
public function bootstrap(): void
{
    // other logic...
    $this->addPlugin('MixerApi/Bake');
}

Usage

MixerApi/Bake will automatically detect the following plugins and adjust the bake output accordingly:

Add --theme MixerApi/Bake to your bake commands.

Bake all your controllers:

bin/cake bake controller all --theme MixerApi/Bake

Bake a single controller:

bin/cake bake controller {ControllerName} --theme MixerApi/Bake

Bake everything (theme only impacts controllers):

bin/cake bake all --everything --theme MixerApi/Bake