Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question