Refer to Configure local PHP interpreters for details. Then, choose one of the configured local PHP interpreters from the PHP interpreter list. The downloaded composer.phar file will be saved under the project root folder.
#PHPSTORM COMPOSER DOWNLOAD#
Then, either specify the location of the existing composer.phar file in the field or select the Download composer.phar from checkbox to download a new instance of the file. To run commands via the local composer.phar archive, choose composer.phar. To run commands via a globally installed composer executable, choose 'composer' executable and specify its location in the field. In the Location field on the right-hand pane, specify the folder where the project will be created.Ĭhoose how the Composer commands will be executed: In the left-hand pane, select Composer Project. After that you can use Composer from the command line or through the user interface.Ĭreating a project is possible only when Composer is run via the configured local PHP interpreter.Ĭhoose File | New Project or click New Project on the Welcome screen. In this case, Composer will be initialized and one package will be installed during the project stub creation.
![phpstorm composer phpstorm composer](https://www.previousnext.com.au/sites/default/files/styles/content_1x/public/2021-08/phpstorm-xdebug-server.png)
You can generate a project stub from an existing package using Composer. You can also use the Yeoman generator, see Yeoman for details.
![phpstorm composer phpstorm composer](https://laraveldaily.com/wp-content/uploads/2015/09/0923_laravel_phpstorm_02.png)
PhpStorm can create new framework-specific applications for you, set up their structure, and download the required packages, if necessary. Generating a Project from a Framework Template