Developing PHP applications in Yii 2 makes you use Yii command-line commands quite often (for example for migrations). Since I am a Windows maniac that uses XAMPP, I have to type:
before each command each and every time.
A bit tiring so I wanted to make this a little bit easy. For example, to be able to type:
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 of Windows Terminal.Read More “Shorthand notation for Yii commands in Git Bash and Windows Terminal”