Example refactoring for my SOLID talk
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
composer.json
composer.lock
index.php
phpunit.xml

README.md

SOLID Example

How to use this codebase:

Option 1: for git aficionados

  1. clone this repo and browse to its directory

  2. git checkout step0 to get to the original code

  3. follow along with git checkout step{n} for n=1..16

    Or, refactor it yourself and see how we compare!

Option 2: using GitHub's UI

  1. Click the <> Code tab
  2. Click 19 commits
  3. Starting from Original PHP file at the bottom, click on each commit going up to see the changes