I have a library "Google" that I keep in a separate GIT repository.
This library is used in some projects. The problem is that I want to rename the library to match the naming convention of these projects, e.g. "Service_Google".
Since PHP doesn't allow for automagic refactoring, the best way I've come up with is to do the following.
- Clone the repo
- Use regex search and replace to change every class name and reference
- [use it until there's a new version]
- Revert
- Pull the latest version
- Step 2
There must be a better way, right?