Modules.pw - A ProcessWire Module Generator

Two weeks ago I was in Japan and had some time to waste. So I took a look at the ProcessWire Forum and found a lot of stuff I missed in the five weeks I've been traveling around without a laptop (and the weeks before).

A lot of core updates were about make builing modules easier. One was about saving ModuleInfo as an external json file another was about an extern config file and the newest about an even easier way for external config file. And there was a post in the forum about the wish to easily generate modules per command line. So I decided to write a module generator.

First step was analyzing some modules and find parts each of them contains. Like a "module type" or the "extend" and "implement" line at the top. Next step was finding all the possible ModuleInfo settings (which sounds easier than it was). After an hour I had written a Google Doc containing everything I would have to know while building the generator. I found some more stuff the day after and added it.

When I was back in Berlin I started building it. Normally I would start with the actual functionallity that generates the output but in this case I started building the form. I had some different ideas for it's user interface like putting the whole code on the site and make some areas of it editable. But I think this would have made everything more complicated and not better. So I decided to use a normal form and "adapt" the style of a processwire admin theme which never got finished. 

The generator is not based on ProcessWire. It's pure PHP and frontend stuff and containing not more than two main files and some helpers. As much as I love ProcessWire: I think it would have been an overkill to use it here :)

You can start building your module here: http://modules.pw

And here is how it looks:

http://supercode.co/s/4e6