Simple Magento Extension generator

Simple Magento Extension generator

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.

Download Inchoo_Alpha.

NOTE: Do not use this on production site.


You made it all the way down here so you must have enjoyed this post! You may also like:

How I learned to stop worrying and love 3rd party modules for Magento Luka Rajcevic
Luka Rajcevic, | 2

How I learned to stop worrying and love 3rd party modules for Magento

Remind customers to place their first order in Magento Marko Martinovic
Marko Martinovic, | 17

Remind customers to place their first order in Magento

Per product meta robots tag control in Magento Marko Martinovic
Marko Martinovic, | 19

Per product meta robots tag control in Magento


  1. Thanks it work fine for me Thanks Inchoo for creating such a nice extension and Thanks Ignacio Pascual for giving a good solution

  2. I have downloaded and place Inchoo alpha module. how i will run this module? please help me

  3. You have a bug in Inchoo_Alpha_Model_Alpha on line 165. Should extend Mage_Core_Model_Mysql4_Collection_Abstract, not Mage_Core_Model_Mysql4_Abstract.

  4. I had to modify Alpha/Model/Alpha.php

    line 52: @mkdir(getcwd().’/generated’);
    line 59: @mkdir(getcwd().’/generated/’.$companyName.’_’.$moduleName.’/app/etc’);
    line 310:

    $writer->endElement(); /* setup */

    To make sure the config.xml has



    …instead of



    …which it didn’t execute the mysql-setup script.

    I hope that helps!

    Inchoo thanks again for all you do to the community! Croatia rulez!!!

  5. @B00MER I based mine on that extension… using the same “blank” or “skel” directory.

    That module is compatible with Magento 1.3, and the theme layout of that version. I’m going to be updating it for 1.4 when I get the chance.

  6. I have something similar that I’ve just created, but it’s a shell script instead of a Magento plugin. You run it from the command line and it creates a .tar.gz file containing all of the components for your module, which you can untar onto your Magento install.

    It is also alpha, so no guarantees, but I’d be happy to accept bugfixes and suggestions.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.