Code Generation

Apex offers various CLI based functions for automatic code generation to help make development more efficient, including CRUD and model generation. The below sections explain the various generation types available.

CRUD Scaffolding

Apex offers functionality for automated code generation of CRUD scaffolding via a YAML configuration file. This will automatically generate the necessary data table, form, and views necessary for all CRUD functionality. For full information, please click on the below link.

[ [CRUD Scaffolding](codegen_crud.md)  ]

Models

You may also automatically generate the necessary interface and PHP class for a model, using columns from a database table. For details on automatically generate model code, please click on the below link.

[Generate Models](codegen_models.md)