Shorthand notation for Yii commands
Developing PHP applications in Yii 2 makes you use Yii command-line commands quite often (for example for data migrations etc).
Since I am a Windows maniac, I have to type php yii
before each command each and every time. A bit tiring. I wanted to make this a little bit easy. For example, to be able to type y migrate
instead of: php yii migrate
.
Getting there was quite easy for Windows scripts and using Windows Terminal. Things has got a little bit complicated when trying to achieve the same in PhpStorm. Which uses GitBash instead.
Read More “Shorthand notation for Yii commands”