I found a module which enables PHP auto-discover for us, and thus makes this considerably easier.