PhpStorm 2018.2 Help

Creating New Project from Scratch

  1. 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 File | New | Project.

  2. In the Select Project Type dialog box that opens, choose PHP Empty Project in the left-hand pane.

  3. In the Location text box, specify the project name and location.

  4. In the PHP Language Level drop-down list, specify the PHP functionality scope to get coding assistance for. Each functionality scope is associated with the PHP version that supports this functionality. Currently PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7, PHP 7.1, and PHP 7.2 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 a different 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.

  5. 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.

  6. 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 require(), include(), fopen(), file(), readfile(), and file_get_contents() functions when looking for files to use.

    • By PhpStorm when resolving references to included files.

    Use the Add icons general add svg  and Remove  icons general remove svg buttons to manage the contents of the list. Use the Up icons actions previousOccurence svg  and Down  icons actions nextOccurence svg  buttons to change the order of items in the list.

  7. 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 that opens:

    ps openProjectInNewFrame
    Refer to the section Opening Multiple Projects for details.

Last modified: 21 November 2018

See Also