Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T23:50:20.000Z (9 months ago)
- Last Synced: 2024-10-26T13:41:51.986Z (about 2 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: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MixerAPI Bake
[![Latest Version on Packagist](https://img.shields.io/packagist/v/mixerapi/bake.svg?style=flat-square)](https://packagist.org/packages/mixerapi/bake)
[![Build](https://github.com/mixerapi/mixerapi-dev/workflows/Build/badge.svg?branch=master)](https://github.com/mixerapi/mixerapi-dev/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/mixerapi/mixerapi-dev/badge.svg?branch=master)](https://coveralls.io/github/mixerapi/mixerapi-dev?branch=master)
[![MixerApi](https://mixerapi.com/assets/img/mixer-api-red.svg)](http://mixerapi.com)
[![CakePHP](https://img.shields.io/badge/cakephp-^4.2-red?logo=cakephp)](https://book.cakephp.org/4/en/index.html)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.0-8892BF.svg?logo=php)](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
```