Skip to content

Instantly share code, notes, and snippets.

@Snugug
Created October 26, 2013 18:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Snugug/7172833 to your computer and use it in GitHub Desktop.
Save Snugug/7172833 to your computer and use it in GitHub Desktop.
OS X 10.9 (Mavericks) comes with PHP 5.4.17 out of the box, allowing you to start a PHP development server in any directory by running `php -S localhost:8888` with `8888` being the port number you'd like to use. This is a little bash/zsh function to reduce that to `server 8888`. Simply add this to `bash_profile` or `zshconfig`. For more on the P…
server() {
php -S localhost:"$*";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment