mixerapi / bake
A bake template for RESTful CakePHP controllers
Installs: 48 297
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Type:cakephp-plugin
Requires
- php: ^8.1
- cakephp/bake: ^3.0
- cakephp/cakephp: ^5.0
Requires (Dev)
- josegonzalez/dotenv: ^3.2
- phpunit/phpunit: ^10.0
README
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