Categorized | News, OOP, PHP

PHP 5 Objects, Patterns, and Practice

Posted on 11 July 2005 by Demian Turner

Ever wanted to post something for over a month and never found the time?

I recently read Matt Zandstra‘s PHP 5 Objects, Patterns, and Practice and thought I’d say a few good words about it for those who haven’t been recommended yet. A lot of good PHP5 books have come out recently, eg something like PHP 5 Power Programming is an excellent resource for the finer points of charset issues, utf8 in PHP, timezone gotchas.  But it’s quite unusual in PHP circles for a book to come out that gives overall sound advice on application design.

I found Matt, who comes from a Java background, really hit the nail on the head, this book is an enjoyable read. While the first few chapters make allowances for readers who don’t have a lot of exposure to OOP, the rest is quite a stimulating read, helped along in no small part by Matt’s excellent unambiguous writing style.

The book deals not only with all major components of a large application, but has a very nice section on the Composite pattern, and spends time looking at Phing, PEAR, and the Reflection API, among other things. The book finishes off with a parser project that brings together a lot of the concepts introduced in earlier chapters – I think even PHPers who consider themselves advanced will enjoy this. Matt apparently works for Yahoo in London.

Bookmark and Share

12 Comments For This Post

  1. jon Says:

    Anyone else have recommendations for PHP 4 (mid-level) coders trying to learn more about PHP 5?

  2. Kyle Mathews Says:

    I’m still waiting for the book to be delivered, but by the review I just read this should be just the book I’ve been looking for. Ever since PHP 5 came out I’ve been trying to find a new PHP…

  3. Joel Rowbottom Says:

    I’ve had this book for a while and I always recommend that new employees at Fotopic read it. The theory is sound, and the practical implementations change the way most people program – for the better.

  4. Terry Jones Says:

    Why do books always waste space on the basics? Seems like every OO programming book I run across starts out with a chapter to introduce OO, then a few chapters to introduce you to the language itself, then they finally get to the point, about halfway through the book.

    Is it just that authors feel like they have to stuff in this filler to justify the outrageous price of the books?

  5. Tolan Blundell Says:

    [Full disclosure: I tech reviewed this book and I work with the author]

    The idea behind an introduction to OO was that for a lot of people moving to PHP5 the new focus on OO might be a spur for them to start using OO where they hadn’t before.

    Remember that PHP is a procedural language first.

    The book doesn’t have a language introduction though, except for OO specific usage, and mainly focussing on the new parts of PHP5. It’s definitely aimed at existing PHP users.

  6. James Richards Says:

    I haven’t been programming long, but this book has helped me immensely!

  7. Demian Turner Says:

    Hi Tolan – thanks for writing in and congratulations to you + Matt on a great book. I kinda played down my review of the book at the last minute because i was surprised how all the Amazon reviews put it in a ‘beginner’ category. The truth is I thought the review of OOP practices and ideas introduced were both excellent and I found this work a head and shoulders above its voluminous peers.

  8. Justin Hendrickson Says:

    Advanced PHP Programming by George Schlossnagle.

    The book recently won ‘Best Development Book’ at the 2005 Linux Journal Editor’s Choice Awards and I highly recommend it.!.html

  9. PHP kitchen Says:

    While we’re on the subject of useful refactorings, I’d like to describe how using an Intercepting Filter helped round up and modularise software setup and initialisation tasks. Before the code could get down to business with the framework’s main task,

  10. Core PHP Says:

    I figured that it really was about time I got my PHP blog off the ground. Although I don’t consider myself "up there" with such luminaries as Sklar, Zandstra, Alshanetsky or Shiflett, I have been coding in PHP for many years, and hope I can im

  11. Krzysiek_19_85 Says:

    It’ s really great book!

  12. it360 Says:

    ?????Blog??????????Programming PHP?

Leave a Reply



Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists



PHPkitchen recommends you also check out the following sites :

Accounting for Small Businesses

FreeAgent sign-up