PhpStorm composer manage dependencies

PhpStorm Command line tool

If you have a project which has already the composer.json file and you want to add some php packages to it you can find manage dependencies menu here:

Image for post
Image for post

Then a Manage Composer Dependencies window will appear and we can search and add what package we want and determine the specific version we need.

Image for post
Image for post

This feature is in PhpStorm since 2017 ( read here )

Also we can activate command line tool in the project.

In the editor preferences (setting) (cmd ,) search this : command line

Then click on the + sign

Then press double ^ (control key) to appear the window for “run anything” and then type and execute the commands. To disappear you just need again press double ^.

Image for post
Image for post

Written by

Web geek, Self-taught full-stack web developer, Learning Python, Laravel, Vuejs, UX/UI design, Nuclear Physicist PhD

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store