Generating Strata Classes

You should not be creating the files by hand when building a Strata app. We have a suite of commands that does repetitive actions for you all the while ensuring conventions are being enforced.


Generates a new Controller class.

$ ./strata generate controller MyController


Generates a new model class.

$ ./strata generate model MyModel

Custom Post Type

Generates a new custom post type model class.

$ ./strata generate customposttype MyModel

Taxonomy class

Generates a new taxonomy model class.

$ ./strata generate taxonomy MyClass

View helper class

Generates a new view helper class.

$ ./strata generate helper MyClass

Validator class

Generates a new form validator class.

$ ./strata generate validator MyClass

CLI command

Generates a new shell command class.

$ ./strata generate command MyClass