CodeIgniter Forums
CLI generators - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: CLI generators (/showthread.php?tid=77264)



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.


RE: CLI generators - kenjis - 03-05-2023

https://codeigniter4.github.io/CodeIgniter4/cli/cli_generators.html