F
F
frie6662020-05-08 10:08:44
Composer
frie666, 2020-05-08 10:08:44

How to install and use Composer in PhpStorm?

I have phpstorm.
I need to install some library and in the tutorial video the author showed the installation of this library through composer, but he uses other programs and I didn’t understand anything.
I read all the articles, manuals and vidos about composer but it didn't help at all.

How to install this damn composer in phpstorm and how to use it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2020-05-08
@HeadOnFire

1. Install Composer globally on the system. We go here , select the instructions for your operating system and install.
2. Use the terminal to work with composer and check that everything is ok. If you don't know what a terminal is, google for your operating system. Using the same terminal, we find out the path to the composer executable file (again, if you don’t know how, google it).
3. When it is verified that the composer is running in the terminal, go to PhpStorm, open Settings -> Languages ​​& Frameworks -> PHP -> Composer and there specify the path to the 'composer' executable (which we looked at in the previous step) and the path to the composer. json (this will be at the root of your project).
If any of the terms / steps are not clear - Google to the rescue. Composer and all this kitchen stuff is quite simple, but if you have Windows, you have absolutely no experience with the command line, then the first steps will be creaky - and that's fine. Don't sweat it. Break such "tasks" into such small steps, study each of them sequentially, and very soon everything will work for you. In no time.

L
Leonid, 2020-05-09
@caballero

composer is simply launched from the command line
php.exe composer.phar update in the folder where there is composer.json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question