CodeIgniter Forums
CLI generators - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: CLI generators (/thread-77264.html)



CLI generators - Anees Khan - 08-09-2020

hi,

please add feature in cli to generate controllers,models,libraries,helper files just like Laravel Artisan

i mean just like php artisan make:controller, it would be awesome if ci4 have php spark make:controller

thanks


RE: CLI generators - Polymorphism - 08-10-2020

(08-09-2020, 04:32 AM)Anees Khan Wrote: hi,

please add feature in cli to generate controllers,models,libraries,helper files just like Laravel Artisan

i mean just like php artisan make:controller, it would be awesome if ci4 have php spark make:controller

thanks

Take a look at this project: https://github.com/lonnieezell/vulcan


RE: CLI generators - MGatner - 08-10-2020

Generators are underway! Check out the latest develop branch of CodeIgniter4/codeigniter4 and some of the existing Pull Requests


RE: CLI generators - korgoth - 08-10-2020

(08-10-2020, 06:31 AM)MGatner Wrote: Generators are underway! Check out the latest develop branch of CodeIgniter4/codeigniter4 and some of the existing Pull Requests
Thats awesome news. Do you have an estimate?


RE: CLI generators - MGatner - 08-11-2020

There are some in place already on `develop` branch, as well as the base classes for implementing more. I just finished reviewing a PR for a centralized "generate all" command - more community feedback on this PR and maybe even help with writing test cases would speed it along:

https://github.com/codeigniter4/CodeIgniter4/pull/3426


RE: CLI generators - PwrSrg - 08-13-2020

I have been greatly anticipating this as well!

I asked Lonnie Ezell about his Vulcan project a few months ago, and he stated that he still has plans to complete it, so that is great news!


RE: CLI generators - paulbalandan - 08-13-2020

Hi. Take a look at my PR if you have suggestions or comments.

https://github.com/codeigniter4/CodeIgniter4/pull/3480


RE: CLI generators - someone - 10-02-2020

It would be good. I used Vulcan actually it didn't useful me. A built-in support should be good.


RE: CLI generators - paulbalandan - 10-06-2020

Generators are already live. It has been weeks already. Try it the latest develop branch.