On this page:
Whatever you do in PhpStorm, you do that in the context of a project. A project is an organizational unit that represents a complete software solution. It serves as a basis for coding assistance, bulk refactoring, coding style consistency, etc.
PhpStorm does not support direct editing of files on remote hosts. Therefore to work with remote sources in PhpStorm, you need to download them and arrange them in a PhpStorm project. To keep your local and remote sources synchronized, configure automatic upload using the Upload changed files automatically to the default server drop-down list in the Options dialog box.
Such project directory contains a
.idea directory, with the following files:
*.imlfile that describes the project structure.
workspace.xmlthat contains your workspace preferences.
- A number of
.xmlfile is responsible for its own set of settings, that can be recognized by its name:
Thus, for example, adding a new run/debug configuration and changing encoding will affect different
.xmlfiles. This helps avoid merge conflicts when the project settings are stored in a version control system and modified by the different team members.
All the settings files in the
.idea directory should be put under version control
workspace.xml, which stores your local preferences. The
workspace.xml file should be
marked as ignored by VCS.
.idea directory is not visible in the Project view of the Project tool window.
The directory structure of each project contains the
.idea directory for the PhpStorm-specific settings and the project file, and libraries.
PhpStorm suggests the following types of projects:
Empty project is intended for pure PHP programming. The directory structure of
such project contains the
.ideadirectory for the PhpStorm-specific settings and the project file, and libraries.
Create a plain project as described in the section Creating New Project from Scratch.
Template-based projects are intended for developing web applications using third-party frameworks.
PhpStorm creates specific infrastructure, with the files and directories structured in accordance with the requirements of the selected framework.
- For client-side development, choose HTML5 Boilerplate, Twitter Bootstrap, Foundation, or Web Start Kit.
- For server-side development, choose Node.js Express App.
Generating Dart application stubs requires that Dart is supported in PhpStorm:
- The Dart SDK is available on your computer.
The Dart plugin is installed and enabled.
The plugin is not bundled with PhpStorm, but it is available from the PhpStorm plugin repository. Once enabled, the plugin is available at the IDE level, that is, you can use it in all your PhpStorm projects. See Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins for details.
Complete project creation as described in the section Generating a Project from a Framework Template.