PhpStorm 2023.1 Help

Project security

To prevent potential security risks, PhpStorm lets you decide how to work with a project if you're not sure about its source. PhpStorm warns you about tasks or configurations that will be executed and lets you configure sources that you can trust.

Open a project from unknown sources

When you open any project, PhpStorm immediately lets you decide how to handle a project that contains unfamiliar source code.

Untrusted project

You can select one of the following actions:

  • Preview in Safe Mode: in this case PhpStorm opens a project in a "preview mode" meaning you can browse the project's sources, but there are restrictions in executing any tasks or running your project.

    For more information on Safe Mode preview limitations, refer to Safe mode preview limitations.

    PhpStorm displays a notification on top of the editor area, and you can click the Trust project… link and load your project at any time.

    In-editor notification for an untrusted project
  • Trust Project: in this case, PhpStorm opens and loads a project. That means project is initialized, project's plugins are resolved, dependencies are added, and all PhpStorm features are available.

  • Don't Open: in this case PhpStorm cancels the action.

Startup tasks

When you open a project created on a different machine, it might contain some scripts or tasks that are executed during the opening process. If such tasks are found, PhpStorm displays a notification suggesting that the code you are about to execute might be harmful.

You can review what tasks will be executed and modify the settings.

Review the startup tasks

  1. In the Settings dialog (Ctrl+Alt+S), go to Tools | Startup Tasks.

  2. On the Startup Tasks settings page, you can review and modify the startup tasks.

Safe mode preview limitations

If you open a project in the safe mode, the following limitations will apply to the project:

Trusted locations

You can configure what sources PhpStorm should consider safe and load such projects automatically during the opening process.

Configure trusted locations

  1. In the Settings dialog (Ctrl+Alt+S), go to Build, Execution, Deployment | Trusted Locations.

  2. On the Trusted Locations settings page, configure the local directories where the projects you consider trusted reside. Click OK to save the changes.

    Trusted Locations

    The next time you open a project from one of those locations, PhpStorm will implicitly trust it.

Last modified: 13 February 2023