Book Review: php|a’s Guide to Programming with Zend Framework

April 18th, 2008 by Ivo

I've recently read Cal Evans's Zend Framework book.

Before I voice my opinion, a disclaimer: I have met Cal personally; in fact I'm having diner with him next Monday, I'm writing a book for php|architect, and my company is a Zend partner. I could not be any more biased. :-)

If you still trust my judgement (and I will try to remain objective), read on.

First of all, the book is fun to read. I like Cal's writing style. He's able to teach stuff while keeping it light and funny. And that works; the book is never dull so it's easy to read in a short time frame. (I never read things in a short time frame though, still took me a month to read it, but that's me; not the book.)

The book first covers the important bits of ZF, such as setting up a ZF application, and working with views and the controller.

What I really liked was that Cal covers the Model properly. Recently there was some fuzz: the now infamous 'heckler at the phplondon conference' called framework authors 'criminals' because they called their frameworks MVC while they only provided Views and Controllers. Cal discusses how to use both a thin model (just a wrapper for the database) and a thick model (business logic) in a Zend Framework application. The book demonstrates, with example code, that you don't need a 'Model' class in the framework itself to work with a Model. A Model is application specific anyway, it contains the business logic of the application. This was refreshing. It was almost as if it was written because of the phplondon incident but the book was written well before that.

After covering all the important bits, some less important but nevertheless useful topics are covered: caching, web services and two-step views (layouts).

The book is full of code samples, and from the book's website you can download the sample code so you don't have to copy the code from the book manually.

Of course, I also have a little criticism. In some parts of the book, things are explained rather quickly. In particular in the web services part, I had to reread some parts a few times before I grasped them. I had the feeling that the rest of the book had a calmer pace, which made it easier to understand what was explained.
Also, there were a few bugs in the book, in particular spelling. However I must be careful to say that, my book might have the same issue. ;-)

Regarding bugs in the example code; Cal keeps track of them at the book's companion site, so if you run into an issue when running the sample code, first check the site to get the latest code.

All things considered, it is a useful, well-written introduction to the Zend Framework. I can recommend anyone who just started working with the framework, and anyone considering to use it, to read the book. It will not only show you how to get things done, it will also give some insight into how the framework works and why things are the way they are, and this greatly helps to understand the framework.

9 Responses to “Book Review: php|a’s Guide to Programming with Zend Framework”

  1. April 20, 2008 at 11:03 am, Jon Rhoades said:

    Hi,

    Having got the book 2 weeks ago, I’d agree that it’s well written and very entertaining. My biggest problem is not what’s in it, but what’s missing – it could (and perhaps should) be twice the size. There are many things components of the framework I would have liked to have seen included – ACL, Lucene and most importantly Zend_Form (although I realise that Zend_Form is a very recent addition to the framework, so perhaps one for edition 2!).

    As a beginner to the Zend framework I’d really like a bit more housekeeping instruction for example where do I put my Zend_Auth & ACL components, should I put a given function in the model or the controller etc – I know there is no right or wrong way – but due to the sparse nature of documentation at the moment I just need a way!

    Overall the book has helped me greatly with the framework and I could recommend it to anybody learning the framework – although they will still need to use the documentation and API guide extensively to create a full application.

  2. April 21, 2008 at 2:00 pm, Ivo Jansch’s Blog: Book Review: php|a’s Guide to Programming with Zend Framework | Development Blog With Code Updates : Developercast.com said:

    [...] Jansch has posted his review of the php|architect book about the Zend Framework by Cal Evans: Before I voice my opinion, a [...]

  3. April 21, 2008 at 2:15 pm, Ivo Jansch’s Blog: Book Review: php|a’s Guide to Programming with Zend Framework | Development Blog With Code Updates : Developercast.com said:

    [...] Jansch has posted his review of the php|architect book about the Zend Framework by Cal Evans: Before I voice my opinion, a [...]

  4. April 24, 2008 at 7:22 am, PHP Weekly Reader - April 20th 2008 : phpaddiction said:

    [...] book on php streams due out in Q3 2008. Thats a topic I never thought there might be a book for. Ivo Jansch has a review for those interested in php|a’s Guide to Programming with Zend [...]

  5. April 25, 2008 at 3:28 am, Reviews | ZF Guide said:

    [...] Ivo Janish wrote Book Review: php|a’s Guide to Programming with Zend Framework You may remember Ivo from my recent blog post on my trip to Amsterdam. Even though we are good [...]

  6. May 11, 2008 at 11:01 pm, Cal Evans said:

    @Ivo,
    Thanks for the great review. I’ll take the notes you’ve given me and work on the problem areas.

    @Jon,
    I’ll work on ACL, I knew I should have covered it but when writing, you’ve got to leave something out if you want to hit the deadline. :) Zend_Form was actually released after the book but yes, if there’s a second edition, it will be in there.

    Thanks again for the great input.

    =C=

  7. May 15, 2008 at 10:33 pm, Scriptorama.nl » Review: PHP|Architect’s guide to programming with Zend Framework said:

    [...] The PHP|Architect’s Guide to Programming with Zend Framework, written by Cal Evans. After reading Ivo Jansch’ review I got excited about it. I had been meaning to look into Zend Framework some more after a brief [...]

  8. May 19, 2008 at 7:04 am, Scriptorama » Review: PHP|Architect’s guide to programming with Zend Framework said:

    [...] PHP|Architect’s Guide to Programming with Zend Framework, written by Cal Evans. After reading Ivo Jansch’ review I got excited about it. I had been meaning to look into Zend Framework some more after a brief [...]

  9. January 18, 2009 at 7:46 pm, Rake girl said:

    thanks for sharing the info.. i love PHP and ajax..i design dynamyc web pages . It has evolved to include a command line interface capability and can be used in standalone graphical applications…