mixerapi/bake

A bake template for RESTful CakePHP controllers

Maintainers

Details

github.com/mixerapi/bake

Source

Issues

Installs: 5 378

Dependents: 1

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Type:cakephp-plugin

v1.0.1 2022-01-16 15:18 UTC

This package is auto-updated.

Last update: 2022-04-30 12:14:04 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