A collection of refactoring examples in PHP
- Each example has a
before.phpand anafter.phpto show the change of the refactoring. - Each example will have a
runtime.phpfile which contains some basic code to show how it would be functioning in production. It also shows that you can do these refactorings safely and without introducing any regressions. // ...represents some other random amount of code that could be present in a real project.- Each
.phpfile will contain multiple namespaces for ease of understanding. - This project does not comply with PSR-4 standards.