Bake RESTful CakePHP controllers in seconds with this API focused bake template. Read more at MixerAPI.com.
!!! note "" You can skip this step if MixerAPI is installed.
composer require mixerapi/bake
bin/cake plugin load MixerApi/BakeAlternatively 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');
}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/BakeBake a single controller:
bin/cake bake controller {ControllerName} --theme MixerApi/BakeBake everything (theme only impacts controllers):
bin/cake bake all --everything --theme MixerApi/Bake