Phalcon Devtools supplies command-line scripts to scaffold Phalcon projects, models, controllers, migrations, and CRUD views faster.
Overview
Phalcon Devtools is a companion toolkit for the Phalcon PHP framework. It provides scripts that generate skeleton code so core application pieces can be created from the terminal or, for some workflows, through a web interface.
Available commands include creating projects, modules, controllers, models, scaffolds, migrations, webtools, a development server, and an interactive console. Running phalcon without arguments lists commands and aliases such as create-project and create-scaffold.
Project generation can target application types such as simple, modules, micro, or CLI layouts, with options for template engines, directories, and optional webtools. Model generation can reflect database tables with validators, namespaces, getters and setters, and documentation hints. Scaffold commands produce controllers, models, and views for basic CRUD around a chosen table.
Configuration can live in a root config file so shared options apply across commands, with CLI arguments overriding file settings. Database adapter settings in the project config must match the engine in use, such as PostgreSQL instead of MySQL when applicable. Installation is via Composer globally or per project, or from a built PHAR.
Key features
- Project skeleton generation
- Controller and model scaffolds
- Database migration helpers
- CRUD scaffold generator
- Built-in dev server command
- CLI and webtools modes
- Shared config.json defaults
- Composer or PHAR install
Use cases
- Bootstrapping Phalcon apps
- Generating models from tables
- Rapid CRUD prototypes
- Database migration workflows
- Phalcon project maintenance