https://github.com/mixerapi/bake
A bake template for RESTful CakePHP controllers. [READ-ONLY]
https://github.com/mixerapi/bake
bake-template cakephp php rest rest-api restful restful-api
Last synced: 6 months ago
JSON representation
A bake template for RESTful CakePHP controllers. [READ-ONLY]
- Host: GitHub
- URL: https://github.com/mixerapi/bake
- Owner: mixerapi
- License: other
- Created: 2020-08-07T22:23:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T23:50:20.000Z (over 1 year ago)
- Last Synced: 2025-04-19T15:52:50.141Z (7 months ago)
- Topics: bake-template, cakephp, php, rest, rest-api, restful, restful-api
- Language: PHP
- Homepage: https://mixerapi.com/plugins/bake
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MixerAPI Bake
[](https://packagist.org/packages/mixerapi/bake)
[](https://github.com/mixerapi/mixerapi-dev/actions?query=workflow%3ABuild)
[](https://coveralls.io/github/mixerapi/mixerapi-dev?branch=master)
[](http://mixerapi.com)
[](https://book.cakephp.org/4/en/index.html)
[](https://php.net/)
Bake RESTful CakePHP controllers in seconds with this API focused bake template. Read more at
[MixerAPI.com](https://mixerapi.com).
## Installation
!!! note ""
You can skip this step if MixerAPI is installed.
```console
composer require mixerapi/bake
bin/cake plugin load MixerApi/Bake
```
Alternatively after composer installing you can manually load the plugin in your Application:
```php
# 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:
- [MixerApi/Crud](https://github.com/mixerapi/crud)
- [MixerApi/ExceptionRender](https://github.com/mixerapi/exception-render)
- [SwaggerBake](https://github.com/cnizzardini/cakephp-swagger-bake)
Add `--theme MixerApi/Bake` to your bake commands.
Bake all your controllers:
```console
bin/cake bake controller all --theme MixerApi/Bake
```
Bake a single controller:
```console
bin/cake bake controller {ControllerName} --theme MixerApi/Bake
```
Bake everything (theme only impacts controllers):
```console
bin/cake bake all --everything --theme MixerApi/Bake
```