Creating New Project from Scratch
- Do one of the following:
- On the Welcome screen, under the Quick Start section, click the link Create New Project.
- On the main menu, choose .
- In the Select Project Type dialog box that opens, choose PHP Empty Project in the left-hand pane.
- In the Location text box, specify the project name and location.
- In the PHP Language Level drop-down list, specify the PHP functionality scope to get coding assistance for. Each functionality scope is associated with PHP version that supports this functionality. Currently PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7, and PHP 7.1 levels are supported.
No correlation between the PHP version used in the project and the language level is enforced. Although the language version of each interpreter is detected automatically, you can still tell PhpStorm to provide you with coding assistance that corresponds to another language level. However, if you attempt to use a code construct that is not supported by the specified language level, PhpStorm suggests a Switch to PHP <version> quick-fix.
- From the CLI Interpreter drop-down list, choose the PHP interpreter to use in the current project by default. The list contains all the currently configured local and remote PHP interpreters. See Configuring Local PHP Interpreters and Configuring Remote PHP Interpreters for details.
- The Include Path area shows a list of paths to PHP-related items below the PHP home directory. The specified include paths will be used:
- By the
file_get_contents()functions when looking for files to use.
- By PhpStorm when resolving references to included files.
- By the
- When you click Create, PhpStorm generates a project stub and opens it either in the current window or in a new one depending on your choice in the information dialog box that opens: Refer to the section Opening Multiple Projects for details.