This article is excerpted from "Netkiller PHP Codex"
Http://netkiller.github.io/php/index.html
8.4.1.4. Phalcon Developer Tools
# pear channel-discover pear.phalconphp.com# Pear Install Phalcon/devtools
Run the Phalcon test if it is installed correctly
# Phalconphalcon DevTools (2.0.7) help:lists the commands availables in Phalcon devtoolsavailable Commands:commands (al IAS of:list, enumerate) controller (alias Of:create-controller) model (alias Of:create-model) All-models (alias of: Create-all-models) Project (alias Of:create-project) Scaffold Migration Webtools
8.4.2. DevTools8.4.2.1. Creating a Project
# phalcon project --helpphalcon devtools (2.0.7) help: creates a Projectusage: project [name] [type] [directory] [enable-webtools]arguments: helpShows this help textExample phalcon project store simpleoptions: --name name of the new project --enable-webtools determines if webtools should be enabled [optional] --directory=s base path on which project will be created [optional] --type=s type of the application to be generated (micro, simple, Multi-module)  --TEMPLATE-PATH&NBSp; specify a template path [optional] --use-config-ini use a ini file as configuration file [ optional] --trace shows the trace of the framework in case of exception. [ optional] --help shows this help
To create a test project
# Phalcon Project Testphalcon DevTools (2.0.7) success:controller "Index" was successfully created. Success:project "Test" was successfully created.
[[Email protected] example.com]# phalcon project www.example.comphalcon devtools (2.0.7) Success: Controller "index" was successfully created. Success: Project "www.example.com" was successfully created. [[email protected] example.com]# find www.example.com/www.example.com/www.example.com/ appwww.example.com/app/logswww.example.com/app/viewswww.example.com/app/views/indexwww.example.com/app/views/ index/index.phtmlwww.example.com/app/views/layoutswww.example.com/app/views/index.phtmlwww.example.com/app/ configwww.example.com/app/config/config.phpwww.example.com/app/modelswww.example.com/app/ controllerswww.example.com/app/controllers/controllerbase.phpwww.example.com/app/controllers/ indexcontroller.phpwww.example.com/publicwww.example.com/public/imgwww.example.com/public/csswww.example.com/ Public/tempwww.example.com/public/fileswww.example.com/public/jswww.example.com/public/index.phpwww.example.com/public/.htaccesswww.example.com/.phalconwww.example.com/. Htaccesswww.example.com/index.html
8.4.2.2. Creating a Controller
# Phalcon Controller Samplephalcon DevTools (2.0.7) Success:controller "Sample" was successfully created.
# cat App/controllers/samplecontroller.php<?phpclass Samplecontroller extends \phalcon\mvc\controller{public function Indexaction () {}}
Phalcon Developer Tools