izniburak / php-router

PHP Router, which also has rich features like Middlewares and Controllers is simple, useful and flexible router class for PHP.
https://github.com/izniburak/php-router/wiki
MIT License
236 stars 45 forks source link

CLI supports for generating middleware and controller templates #22

Open peter279k opened 4 years ago

peter279k commented 4 years ago

As title, the controller and middleware templates always need to be created by developers manually every time.

It should have the way to generate common controllers and middleware templates with CLI support.

This feature is very similar with Laravel artisan make:commands. Some useful reference is available here.

@izniburak, do you have any idea about this? Or maybe this feature can be another repository? (it's like php-router-cli)

izniburak commented 4 years ago

We can think about that. It isn't urgent but it sounds good.