Home / PhpStorm / 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 Supportand click the plus+sign in order to add the phalcon CLI tool. 1. SelectCustom toolin theTool Settingsdialog. 2. Enter the (absolute)Tool pathof thephalcon.shcontained in thephalcon-toolsfolder you installed in Step 1. 3. Enterphalconin theAliasfield.Descriptioncan 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 Librariesin theProjectpane. - Select
Configure PHP Include Paths. - Set
PHP language levelto5.5 - Set
Interpreterto/usr/local/bin - Click the plus
+sign and add your include path (you can navigate to your path by finding thephalcon-toolsfolder installed in Step 1 and navigating to /phalcon-tools/ide/1.2.5). - Click
OK. - Click
Apply. - Click
OK.