If you are using the Toolbox App to install and manage JetBrains products, it can create shell scripts for launching your IDEs from the command line. Shell scripts generated by the Toolbox App Since /usr/local/bin should be in the PATH environment variable by default, you should be able to run the phpstorm command from anywhere in the shell.
Ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm