Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Oct. 26th 2015

Code Katas in PHP: Small Refactors and the Gilded Rose

Episode 7 Run Time 40:02

Download

In this lesson, we'll tackle the intimidating Gilded Rose kata in PHP. Our job is to translate a monstrously confusing set of countless conditionals into a small series of readable methods. Work along with this lesson, and you'll benefit greatly.

View the slightly altered setup and solution (see second branch) for this lesson on GitHub.