A collection of refactoring examples in PHP
- Each example has a
before.php
and anafter.php
to show the change of the refactoring. - Each example will have a
runtime.php
file 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
.php
file will contain multiple namespaces for ease of understanding. - This project does not comply with PSR-4 standards.