Wrapper that allows to open projects from commandline:
$ phpstorm ~/projects/awesome-project
Download this snippet and install into your $PATH
This command only takes care of opening directories. If you need to have diff option, etc command passing, write your own.