Skip to content

Instantly share code, notes, and snippets.

@rlandas
Created December 22, 2012 05:47
Show Gist options
  • Save rlandas/4357674 to your computer and use it in GitHub Desktop.
Save rlandas/4357674 to your computer and use it in GitHub Desktop.
ZF2: Create module directory structure
#!/bin/bash
read -e -p "Enter ZF2 module name: " moduleName;
moduleNameLowercase=$(echo $moduleName | tr '[A-Z]' '[a-z]');
mkdir -pv ${moduleName}/{config,src/${moduleName}/{Controller/Plugin,Entity,Filter,Form,Mapper,Service,Validator,View/Helper},view/${moduleNameLowercase}/index}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment