php serve host code example
Example 1: php serve
// to serve folder foo in public
$ cd ~/public
$ php -S localhost:8000 -t foo/
Example 2: how to host a php server
php artisan serve --host your-ip-add --port 8000
// Example with port
php artisan serve --host 192.168.1.001 --port 8000