Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:
cdto webroot (where your
path/to/php -S localhost:8080
You don't need any rewrite rules. Both clean URLs and path-style URLs are working just fine.