Found this on Yii wiki: Yii 2.0: PHP built-in server integration
Really cool and my default when working with Yii.
Place the ServeController.php file in "commands/" folder.
From the root of your project run "./yii serve" on Linux/BSD/OSX or "yii.bat serve" on Windows.
Open your browser to "http://localhost:8080" and work.
Supports the equivalent of Apache's mod_rewrite.
If you have problems with the network port 8080 (maybe Skype ;) ) or want to run it accessible in your network or on the internet (port forward in your router), the pass arguments to the "Yii CLI tool" like this: "./yii serve web 192.168.0.101 8888", where you would replace your IP and the port you want.