Home / PhpStorm / Guides / Phalcon
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 (you can navigate to your path by finding thephalcon-tools
folder installed in Step 1 and navigating to /phalcon-tools/ide/1.2.5). - Click
OK
. - Click
Apply
. - Click
OK
.