Refactoring Legacy Applications Using CakePHP

Have you ever wanted to start using the CakePHP web application framework, but were wondering about it's use in the real world? As an experienced developer who is familiar with CakePHP, I decided to put together a book that can help people out. The result is "Refactoring Legacy Applications Using CakePHP".

With any web application framework, the most common questions are usually "how do I do X?" where X is usually a concept that is pretty common to web development work. I felt that the best way to show people how to move an older legacy application over to using CakePHP was to do exactly that. The book is a case study showed how I refactored an adminstrative application used in my simulation baseball league from a spaghetti PHP mishmash over to a well-structured CakePHP application.

The trick is to understand how to use CakePHP's conventions to your advantage, instead of fighting against them. In this book I cover things like

Here's what CakePHP lead developer Nate Abele had to say about the book:

Hartjes' book takes an in-depth look at pitfalls common to many legacy web applications, particularly those written in PHP. The application migration strategies presented make this an ideal read for developers new to MVC separation, database abstraction, and related concepts, as the one-to-one mapping between legacy and framework-oriented code turns abstract concepts into easily-digestable code examples.

We have a few reviews of the book as well:

Throughout the book I also explain what I am doing, along with why I made the choices I did. I'm very happy with how it turned out and I think that if you buy this book you will not be disappointed. A few people have asked me for samples, so here is Chapter 5 of the book.

DRM-free PDF of the book, only $10



Print-on-demand paperback via Lulu for $19.53.

Support independent publishing: buy this book on Lulu.

CakePHP is a registered trademark of the Cake Software Foundation