dev-master
9999999-devAutobake plugin for CakePHP
The Requires
- php >=5.4.16
- cakephp/cakephp ~3.0
The Development Requires
plugin framework cakephp bake autobake
Autobake plugin for CakePHP
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 can "auto-generate" all your models, controllers and views from a given database, previously established in your App/config/app.php file., (*4)
'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_', ], ],
``` bash $ cake prepare auto_model users, (*5)
##### Baking controllers ``` bash $ cake prepare auto_controller --prefix myprefix users
``` 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
Autobake plugin for CakePHP
plugin framework cakephp bake autobake