gPhPStorm

Setting up PhpStorm from JetBrains.com

(steps 1-4 do only 1 time)

1) Install PHP

2) Install PhPStorm from JetBrains.com NOTE: you can get free 1 year educational license - make sure you sign up as a student.

 

3) Configure to PhPStorm to point to local enterpreter (mine is at C:/php --you need to know where it is from the instal in #1 on your machine)

Go to JetBrains.com documentation on how to do this...right now you go to File->Settings and Under the PHP tab
specify the directory to point to the php.exe file (this is the PHP interpreter)





 

4) SETUP local server

NOTE: AMPPS server you store your HTML and PHP files under the C:\Ampps\www directory and if you put a file hello.php there the URL is http://localhost/hello.php
NOTE: you can make subdirectories under www to organize as you wish and append this to your mappings you setup below and the url will have the directory also listed

go to PHPStorm -> FIle ->Settings -> Deployment and select + to add a new server

Now type in a name and choose as type Local or mounted folder

 

 

Now in the specifications of this local server if you installed in step 1 the AMPP stack you will for folder C:\Ampps\www (this assumes was installed on a windows machine in the C:\Ampps directory --you specify the correct path for your install). AND specify th efiles on server as http://localhost

 

 

NOW for each new project, you should add a mapping by going to the mappings tab and entering a mapping like the following:

This maps the project HelloWorldPhp in PHPStorm to the HelloWorldPhp subdirectory inside C:\Amps\www and uses the URL http://localhost/HelloWorldPhP to access it

 

 

5) BROWSER SUPPORT: your browser for debugging to support PhPStorm --for example for Chrome must install the plugin
(luckily PhPStorm will prompt you to do this)

 

 

 

 

© Lynne Grewe