1.开发助手
1) 下载
git clone https://github.com/phalcon/cphalcon.git git clone https://github.com/phalcon/phalcon-devtools.git
2)修改目录下的ide/gen-stubs.php文件
// define('CPHALCON_DIR' , '/Users/micate/Code/cphalcon/ext/php'); define('CPHALCON_DIR' , 'E:\xampp\htdocs\phalcon-devtools'); // if (!file_exists(CPHALCON_DIR)) { // throw new Exception("CPHALCON directory does not exist"); // } //需要将文件的目录改成开发包的目录地址
3) 生成phalcon语法文件
php gen-stub.php
4)配置PHPstorm支持phalcon语法(指定包的地址即可)