Skip to content

A collection of refactoring examples in PHP

License

Notifications You must be signed in to change notification settings

cborgas/php-refactorings

Repository files navigation

php-refactorings

Tests

A collection of refactoring examples in PHP

About

  • Each example has a before.php and an after.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.

About

A collection of refactoring examples in PHP

Topics

Resources

License

Stars

Watchers

Forks

Languages