Yes, I know shell scripting isn't really done in PHP, but it's a very very powerful language, easily capable of being scripted to become a daemon (bot), or some type of service/server, but the one thing lacking and needed for any command line application is switch input. So here I present phpAPP, the shell scripting helper.
# ./phpapp -test=var0 -test=var1 -test="var2 var2" -test2=29.95 --var_display=test2 --arr_display=test
Display test2: 29.95
Display test: Array
 => var2 var2
 => var1
This is just an example of some of the basic stuff you can accomplish with this.