Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivyhjk/autobake
A CakePHP 3 plugin to autobake yours projects!
https://github.com/ivyhjk/autobake
Last synced: about 1 month ago
JSON representation
A CakePHP 3 plugin to autobake yours projects!
- Host: GitHub
- URL: https://github.com/ivyhjk/autobake
- Owner: ivyhjk
- Created: 2015-06-27T17:52:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T02:22:58.000Z (over 9 years ago)
- Last Synced: 2024-05-28T20:04:55.718Z (7 months ago)
- Language: PHP
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autobake plugin for CakePHP 3
## Installation
You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).
The recommended way to install composer packages is:
``` bash
$ composer require ivyhjk/autobake
```## Plugin activation
``` bash
$ bin/cake plugin load Autobake
```# autobake
Autobake can "auto-generate" all your models, controllers and views from a given database, previously established in your App/config/app.php file.
- It's based on CakePHP Bake console, but better and fast!.
- Support table prefixes for bake, just add 'prefix' => 'my_prefix_' to your database config.
For example:```php
'Datasources' => [
'default' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Mysql',
'host' => '127.0.0.1',
'username' => 'username',
'password' => 'y0ur53c3t7p4s5w0rD',
'database' => 'autobake',
'encoding' => 'utf8',
'timezone' => 'UTC',
'prefix' => 'my_prefix_',
],
],
```# Usage
##### Baking models
``` bash
$ cake prepare auto_model users
```##### Baking controllers
``` bash
$ cake prepare auto_controller --prefix myprefix users
```##### Baking templates
``` bash
$ cake prepare auto_template --prefix myprefix users
```##### And the most powerfull tool: baking all, with prefix :).
``` bash
$ cake prepare all --prefix myprefix users
```