cobaia/console-plus

CakePHP Plugin that gives to console additional functionalities

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 1

Open Issues: 0

Type:cakephp-plugin

dev-master 2013-05-20 22:03 UTC

This package is not auto-updated.

Last update: 2024-11-09 14:29:45 UTC


README

Additional commands and helpers for CakePHP 2 Console.

What this Plugin provides:

  • ConsoleTable - A helper to output table data in console. (Not finished yet)
  • ConsoleTree - A helper to output tree data in console; (Not implemented yet)
  • RouterCommand - List of all routes defined in your application;
  • InteractiveCommand - REPL for CakePHP

Usage

ConsolePlus.Router

php app/Console/cake.php ConsolePlus.Router

+---------------------------------------------------------------------------------------------------------------------------------+
|                                                         List of Routes                                                          |
+---------------------------------------------------------------------------------------------------------------------------------+
| Controller::action                                | Method                      | Route                                         |
+---------------------------------------------------------------------------------------------------------------------------------+
| ContentsController::view($content)                | ANY                         | /contents/view/{content}/                     |
| ContentsController::detail($content, $test, $lol) | ANY                         | /contents/detail/{content}/{test}/{lol}/      |
| ContentsController::edit($id)                     | GET|PUT|DELETE|HEAD|OPTIONS | /contents/edit/{id}/                          |
| ContentsController::edit($id)                     | POST                        | /edit/{id}                                    |
| PagesController::display()                        | ANY                         | /pages                                        |
| ToolbarAccessController::history_state($key)      | ANY                         | /debug_kit/toolbar_access/history_state/{key} |
| ToolbarAccessController::sql_explain()            | ANY                         | /debug_kit/toolbar_access/sql_explain         |
+---------------------------------------------------------------------------------------------------------------------------------+

ConsolePlus.Interactive

License

Licensed under The MIT License Redistributions of files must retain the above copyright notice.

Author

Vinícius Krolow - krolow[at]gmail.com