2017 © Pedro Peláez
 

cakephp-plugin autobake

Autobake plugin for CakePHP

image

ivyhjk/autobake

Autobake plugin for CakePHP

  • Wednesday, August 12, 2015
  • by ivyhjk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Autobake plugin for CakePHP 3

Installation

You can install this plugin into your CakePHP application using composer., (*1)

The recommended way to install composer packages is:, (*2)

``` bash $ composer require ivyhjk/autobake, (*3)


## 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., (*4)

  • 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:
    '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, (*5)


##### Baking controllers ``` bash $ cake prepare auto_controller --prefix myprefix users
Baking templates

``` bash $ cake prepare auto_template --prefix myprefix users, (*6)


##### And the most powerfull tool: baking all, with prefix :). ``` bash $ cake prepare all --prefix myprefix users

The Versions

12/08 2015

dev-master

9999999-dev

Autobake plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires

plugin framework cakephp bake autobake