Magento Themes and Magento Extensions

Simple Magento Extension generator

Share

Writing Magento modules on a everyday basis can become extremely boring job when it comes to the part where you define your module directories, config file, model, block, helper, etc. What I am trying to say is that there is significant amount of repetitive work being done each time you start new module development. To compensate for this a little bit, I created this little Magento module that helps you create other modules. Hope it does not sound to much confusing.

To access the module functionality you need to install by copy-pasting the content of archive to your Magento installation and then open the http://mystore.loc/alpha url. I realize that using “alpha” for the module name is not much innovative. Basically you can look at this module as being a skeleton upon which you might build your own module generator. The code itself was done in a hasty way so it might need some refactoring if you wish to play with it. I plan on continuing my work on this module. This is just an alpha version  .

So, what does this module do actually? When you access the http://mystore.loc/alpha url you will be presented with a very simple form where you can enter the company name and module name. Please know that the attached version of module is not “fool proof” so try not to use any spaces or small-big letters combination for names. Once you click create, you should be presented with another page that offers you a link on which you can click and download the generated module.

Also, module generates the root “/generated” folder in which you can find both subdirectories and .tar file of the generated module.

There are several files that get generated as a part of a module. Most important is config.xml file, so be sure to take a good look at it and change the values manually to your convenience.

Hope it helps someone.

NOTE: Do not use this on production site.

Leave a Reply

You must be logged in to post a comment.