On this page, enable execution of the Composer Dependency Manager commands through the dedicated user interface and appoint the default composer.json for the PhpStorm project.
Path to composer.json
In this field, specify the location of the composer.json that you want to use as the project's default Composer file. All the Composer commands invoked from from the main menu will be executed in accordance with the settings from this configuration file.
You can have several composer.json files in one PhpStorm project, and invoke Composer actions and commands for each of them.
If a project contains subdirectories with dedicated composer.json files, PhpStorm handles Composer-managed dependencies and settings for each of such modules independently. Every subdirectory with composer.json installed in it will have its own PSR-0/PSR-4 roots settings, configurations for test frameworks, and a vendor directory with External Libraries.
Add packages as libraries
Use this checkbox to configure the open-for-edit status of Composer packages. To protect packages under vendor/*/* against editing, leave the checkbox selected (this is the default setting).
If you want to edit the Composer packages under vendor/*/*, clear the checkbox.
Synchronize IDE Settings with composer.json
Select this checkbox to automatically detect the PHP language level and configure project Source and Test roots based on the configuration from composer.json.
PhpStorm is aware of PSR-0/PSR-4 source roots and their namespace prefixes. It sets the Source root based on the
Because composer.json contains the most up-to-date information about the project configuration, this automatic synchronization ensures that the Source and Test folders exactly match the project structure, and the correct PHP language level is set automatically.
Check for available package updates
Use this checkbox to configure automatic checks for available package updates. By default, the checkbox is selected. To retrieve the available package updates and provide better coding assistance in composer.json, PhpStorm runs the update --dry-run command in the background every time you open a project or modify composer.json.
Show composer.json top panel with quick actions
Use this checkbox to toggle the visibility of the quick actions panel displayed on top of the composer.json editor. For more information, refer to Work with composer.json.
Notify about missing 'vendor' directory
Select this checkbox to have PhpStorm check whether the vendor directory is missing and display the corresponding notification every time you open a project or modify composer.json. You can use the shortcut link in the notification to quickly install Composer dependencies.
Run install/update with ‑‑ignore‑platform‑reqs
This will ignore all platform requirements (
In this area, choose how the Composer commands will be executed: