Robo: a robust commandline task runner for PHP. I really wanted something native to PHP to handle basic tasks and scripting and Robo fits the bill perfectly for me. Robo is written by the guy who maintains Codeception and I have really enjoyed it for several months now. I also pull in the robo-drush package for drupal sites because it makes things a bit simpler. Below is a generalized version of the scripts I use to sync my local site with remote servers. This script is admittedly far bigger than the short little bash script above, but it is also a lot more flexible; and it is just PHP. Take a look at the Robo docs for more ideas, I hope you find it useful!