webuilder240/cake-console-routes

There is no license information available for the latest version (0.0.3) of this package.

CakeConsoleRoutes is like a [rake routes] command for CakePHP3

0.0.3 2015-07-20 11:38 UTC

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

About this plugin infomation (Japanese)

http://webuilder240.github.io/2015/07/cake-console-routes/