PhpStorm 2016.2 Help

Using Framework Model View Controller

With PhpStorm, you can examine the structure of a project in the terms of the Model-View-Controller pattern. This functionality is provided in the dedicated Framework tool window and is currently available for the Symfony2 and Yii command line tools.

In this section:


  1. The Command Line Tool Support and Framework MVC Structure Support plugins are enabled. The plugins are bundled with PhpStorm and activated by default. If the plugins are not activated, enable them on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
  2. The Symfony2 or Yii command line tool is downloaded.
  3. Integration with the tool is enabled on the Command Line Tool Support page of the Settings dialog box.
  4. A Symfony2 or a Yii specific project is available on your machine.

To enable the MVC view

  1. Open the PhpStorm settings and click Framework Integration.
  2. In the Framework Integration page, specify the command line tool your project is based on and the location of the tool project. PhpStorm checks the contents of the specified tool project directory and accepts the appointed project root if it contains the following subfolders:
    • For Symfony2: app, src, vendor, and web subfolders.
    • For Yii: a protected subfolder.

After that, the Framework tool window is available through the View | Tool Windows menu.

To examine the MVC structure of a tool-specific project

  1. To open the required tool-specific project, choose File | Open or File | Open Directory, and then select the project root folder in the dialog box that opens.
  2. In the Framework tool window that immediately opens automatically, examine the project in the terms of bundles, controllers, and other elements of the MVC pattern.

See Also

Last modified: 24 November 2016