Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 763 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 763 Bytes

ZF2 Creator

A simple script written in Bash to create module and controller, following Zend FRamework 2 Structure.

You should change file DefineAuthorFile and modify the string author. e.g:

DefineAuthorFile

#!/bin/bash
export author="@author Guilherme P. Nogueira <[email protected]>"

Result:

<?php

/**
 * @author Guilherme P. Nogueira <[email protected]>
 */

 // source code...

Resources

  • Module: Full module (directory structure, default files, Controller with Factory pattern
  • Controller: Create Controller with Factory pattern
  • Controller Plugin: Create the plugin to usage inside controllers

Running

$ ./run.sh

Author

Guilherme P. Nogueira