Created
November 18, 2017 17:49
-
-
Save vinaydotblog/3a29903be20b793a57590ea7b8c4df52 to your computer and use it in GitHub Desktop.
PHP Local Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Usage Example: serv home.html 5050 | |
## 2nd and 3rd arguments are optional | |
serv() { | |
open -a "Google Chrome" http://localhost:${2:-2020}/${1:-} | |
/usr/bin/php -S localhost:${2:-2020} -t . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment