PHPStorm
PHPStorm is a back-end IDE (PHP, PHP frameworks, Node.js, Databases, Composer) powered by JetBrains exclusively available in a paid version.
π JetBrains IDEs share many features explained here.
Features
- π± preview code in any browser with auto-refresh on change
- π recognize old code snippets and suggest upgrades
- π₯ recognize simple mistakes and suggest fixes
- β³ can generate common code snippets (equals, getters...)
- ...
Product-specific features
Remote development
π± You can code directly on a remote server. No need to install tools on your computer, but it means users may see your changes.
Press CTRL+ALT+S or βοΈ > Settings. Navigate to Build... then Deployment. From there, create a new configuration.
- enter your SFTP credentials
- the
root pathis the path to your project on the remote host - the
webserver URLisn't your website URL. If they are different, then you should setmappings - in excluded paths, you can exclude some folders from upload
Navigate to Options within Deployment, and select a condition for uploading files, such as Always.
PHP CLI
You can set up the PHP interpreter that will be used to execute scripts or install tools when using some IDE features.
- Open the IDE Settings
- Click on the PHP section
- Click on
[...]on thePHP CLI interpreterline - Add a new interpreter
- Set
PHP executableto the PHP binary - Set
PHP configurationto thephp.inifile
- Set
- Go back and select your interpreter in the list
Composer install
Instead of installing composer.phar, you can download composer.phar from the IDE and load it using your PHP CLI.
- Open the IDE Settings
- Navigate to PHP > Composer
- Select "composer.phar" in "execution"
- Click on "download" and select your PHP interpreter
- Apply and exit