Skip to content

A simple script written in Bash to create module and controller following the Zend Framework 2 structure.

Notifications You must be signed in to change notification settings

guilherme90/zf2-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <guilhermenogueira90@gmail.com>"

Result:

<?php

/**
 * @author Guilherme P. Nogueira <guilhermenogueira90@gmail.com>
 */

 // 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

About

A simple script written in Bash to create module and controller following the Zend Framework 2 structure.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages