Skip to content

Introduction

What Crest is, and the two flavors of project that it works with: MVC and ADR.

Crest is a command line application for Phalcon. It generates code, shows information about a project, and creates and runs projects.

Crest works with two flavors of project, mvc and adr:

  • MVC (Model-View-Controller): models, views and controllers, in the layout of vokuro and invo, the Phalcon sample applications.
  • ADR (Action-Domain-Responder): an action for each route, and a responder that the action calls. A route is an HTTP method and a path that the application answers, for example GET /. The action answers the route, and the responder makes the response. An ADR project can also have middleware: classes that a request goes through before it gets to the action.

The table shows the flavors that each command works in. A command for one flavor only stops with an error in a project of the other flavor:

Command ADR MVC
about ✓ ✓
config:show ✓ ✓
container:list ✓ —
down ✓ ✓
event:list ✓ —
init ✓ ✓
install ✓ ✓
list ✓ ✓
make:action ✓ —
make:command ✓ ✓
make:controller — ✓
make:database ✓ ✓
make:middleware ✓ —
make:model — ✓
make:module — ✓
make:provider ✓ ✓
make:repository ✓ —
make:responder ✓ —
make:scaffold — ✓
new ✓ ✓
route:list ✓ —
serve ✓ ✓
stub:publish ✓ ✓
up ✓ ✓

The error names the flavor of the project and the flavors that the command supports:

crest: make:responder does not support the 'mvc' flavor of this project; it supports: adr

To start, see Installation and Quick start.

References

Navigation

Type to search…

↑↓ navigate↵ selectEsc close