For folders, there are only a handful of things you can do. In this case, you want to rename the folder. Press Rename, and choose a new name. This specific refactoring can also search for references within strings and text, but let’s keep it to PHP code for now. You can specify the scope of the refactor, but for now you can simply keep it set to The Whole Project.
You can preview the refactoring, which will show what PhpStorm intends to change, and you can press Refactor to apply these changes.
And… you’re done! If something unintended happens, you can always press Control
or Command+Z
to undo the refactoring as well.