webuilder240 / cake-console-routes
CakeConsoleRoutes is like a [rake routes] command for CakePHP3
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-13 10:47:15 UTC
README
CakeConsoleRoutes is like a "rake routes" command for CakePHP3
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require webuilder240/cake-console-routes --dev
Configuration
Set the CakeConsoleRoutes in bootstrap_cli.php
config/bootstrap_cli.php
if (Configure::read('debug')) { Plugin::load('CakeConsoleRoutes'); }
Usage
bin/cake routes
Example
Airnick:cake3-controller-test-sample nick$ bin/cake routes Method URI Pattern Controller/Action extensions GET / Pages/display none GET /api/v1/posts Posts/index json,xml POST /api/v1/posts Posts/add json,xml GET /api/v1/posts/:id Posts/view json,xml PUT,PATCH /api/v1/posts/:id Posts/edit json,xml DELETE /api/v1/posts/:id Posts/delete json,xml
Todo
- remove config/routes.php
check route extensions- check Plugin Routes