Phpstorm Composer



Is there a way to tell PhpStorm to automatically run Composer Update ANY time it sees changes to composer.json? For example, when I check out a branch that requires completely different packages. Automation composer-php phpstorm. PhpStorm + Docker + Composer. Ask Question Asked 1 year, 7 months ago. Active 1 year, 7 months ago. Viewed 962 times 4. Currently working on a project that uses docker-compose to create a multi-container application.

Phpstorm

The dialog opens when you click and choose Composer in the Command Line Tools dialog. Use the dialog to configure Composer support in PhpStorm.

Phpstorm Composer Command

In this dialog, enable the use of Composer Dependency Manager in the command line mode by specifying the way to launch Composer and appointing the file to look for Composer commands in.

PhpStorm parses the contents of the specified .phar archive or executable file for Composer commands. When the file analysis is completed, PhpStorm returns to the Command Line Tools Support page where the specified file is added to the list of command line tools available in PhpStorm.

Composer

Phpstorm Cli Interpreter

ItemDescription
Composer.phar or PHP script

Choose this option to launch Composer through a PHP script or have PhpStorm detect and start the launcher in the composer.phar archive. In this mode, PhpStorm provides coding assistance and allows you to execute scripts.

  • PHP interpreter: In this field, choose one of the configured local or remote PHP interpreters, through which the tool commands will be executed. For details on configuring PHP interpreters, see Configure local PHP interpreters and Configure remote PHP interpreters.

  • Path to composer.phar or composer: In this field, specify the location of the composer.phar archive.

Composer executable Choose this option to launch Composer through the composer executable file. In this mode, you do not get coding assistance and cannot execute scripts because no PHP engine is appointed for it.

In the Path to executable field, specify the location of the composer executable file.