provide overrideable methods for php params

I was needing to be able to provide ENV and extra parameters to PHP -- this lets you subclass and/or extend these methods to do so.