Very easy. Just use php -S and the address and port to use.
php -S localhost:8000
For more info, check out http://php.net/manual/en/features.commandline.webserver.php
I personally use an cloud instance on AWS. I spun up a kali instance and use the command “php -S” or “service apache2 start”. If you want to use a non-cloud based solution, look into a free service called ngrok. Hope this helps.