Configuring phpStorm and phalcon
This document assumes that:
- You have a working install of phpStorm on your system.
- You have a local AMP installation as prescribed by Digitec.
- The steps described below are derived from this video: Integrating Phalcon with PhpStorm IDE.
Steps
- Follow the instructions for your system and install Phalcon Developer Tools.
- Add command line support for phalcon to phpStorm.
- Access phpStorm settings (Linux, Windows:
File
>Settings
, Mac:PhpStorm
>Preferences
). - Select
Comand Line Tool Support
and click the plus+
sign in order to add the phalcon CLI tool. 1. SelectCustom tool
in theTool Settings
dialog. 2. Enter the (absolute)Tool path
of thephalcon.sh
contained in thephalcon-tools
folder you installed in Step 1. 3. Enterphalcon
in theAlias
field.Description
can be left blank. 4. ClickOK
. 5. ClickApply
. 6. ClickOK
. - Add phalcon IDE stubs to your phpStorm project.
- Open your project in phpStorm.
- Right-Click on the
External Libraries
in theProject
pane. - Select
Configure PHP Include Paths
. - Set
PHP language level
to5.5
- Set
Interpreter
to/usr/local/bin
- Click the plus
+
sign and add your include path/Users/myusername/phalcon-tools/ide/1.2.5
. - Be sure to change
myusername
above to your user name as seen in theTerminal
.