Provide configuration file for php module

I have modified php define so you could provide a configuration file with `source`, `template` or `content` parameters.

I have also pulled another similar request for the negotiation module. I think that this approach could be useful for the rest of module's defines. I could patch them the same way that this module.