4

Like Laravel and Yii, do Magento 2 has CRUD generator?

There would a lot of efforts save if Magento 2 has it's own CRUD generator, so that everytime I will create a new module related to a table I don't want to create all the files manually, there should be a crud generator.

3

I am not aware of any kind of command that will generate your module or generate CRUD.

But you can use online tools to generate your module.

I personally use SilkSoftware module generator: https://www.silksoftware.com/magento-module-creator/magento2-module-creator.php

But Mage2Gen is also a good module generator, you can also use that https://mage2gen.com/

Magen plaza module generator (Didn't personally use it) https://www.mageplaza.com/devdocs/magento-2-module-creator.html

Just search on google "magento 2 module generator" and you will find all these

  • Thanks for sharing – Muhammad Farzam Jun 17 '19 at 9:11
  • I can confirm that the mageplazza links through to UltimateModuleCreator and this will create the module, model and CRUD all in one. It is fantastic. There is one issue I find is that all the names of the modules and entities need to be single words because they are used to generate table names. Acronyms like CRUD are also an issue... it creates errors in the table names and fails to setup:upgrade. Avoid that and it's fantastic as I said :) – Barry Dec 4 '19 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.