PHP Objects, Patterns, and Practice, Second Edition and over 360,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
Sorry!
More Buying Choices
42 used & new from $23.98

Have one to sell? Sell yours here
 
   
PHP Objects, Patterns, and Practice, Second Edition
 
 
Start reading PHP Objects, Patterns, and Practice, Second Edition on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here.
 
  

PHP Objects, Patterns, and Practice, Second Edition (Paperback)

~ (Author)
Key Phrases: data mapper, page controller, identity map, Abstract Factory, Domain Model, Gang of Four (more...)
4.6 out of 5 stars  See all reviews (9 customer reviews)

List Price: $44.99
Price: $29.69 & this item ships for FREE with Super Saver Shipping. Details
You Save: $15.30 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Tuesday, November 10? Choose One-Day Shipping at checkout. Details
30 new from $24.98 12 used from $23.98

Also Available in:

List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book)   $23.75  

Frequently Bought Together

PHP Objects, Patterns, and Practice, Second Edition + Pro PHP: Patterns, Frameworks, Testing and More + Practical Web 2.0 Applications with PHP
Price For All Three: $93.67

Show availability and shipping details

  • This item: PHP Objects, Patterns, and Practice, Second Edition by Matt Zandstra

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Pro PHP: Patterns, Frameworks, Testing and More by Kevin McArthur

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Practical Web 2.0 Applications with PHP by Quentin Zervaas

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Practical Web 2.0 Applications with PHP

Practical Web 2.0 Applications with PHP

by Quentin Zervaas
4.6 out of 5 stars (18)  $30.34
PHP Object-Oriented Solutions

PHP Object-Oriented Solutions

by David Powers
4.8 out of 5 stars (6)  $24.41
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems

by William Steinmetz
4.6 out of 5 stars (15)  $19.77
Beginning Zend Framework

Beginning Zend Framework

by Armando Padilla
4.5 out of 5 stars (4)  $28.37
PHP in Action: Objects, Design, Agility

PHP in Action: Objects, Design, Agility

by Dagfinn Reiersol
4.6 out of 5 stars (10)  $26.39
Explore similar items

Editorial Reviews

Product Description

Backed by a tireless development community, PHP has been a model of language evolution over its 10+ year history. Borne from a contract developer’s pet project, these days you’ll find PHP powering many of the world’s largest web sites, including Yahoo!, Digg, EA Games, and Lycos.

PHP Objects, Patterns, and Practice, Second Edition shows you how to meld the power of PHP with the sound enterprise development techniques embraced by professional programmers. Going well beyond the basics of object–oriented development, you’ll learn about advanced topics such as working with static methods and properties, abstract classes, interfaces, design patterns, exception handling, and more. You’ll also be exposed to key tools such as PEAR, CVS, Phing, and phpDocumentor.

What you’ll learn

  • Write solid, maintainable code by embracing object–oriented techniques and design patterns.
  • Create detailed, versatile documentation using the powerful phpDocumentor automated documentation system.
  • Gain new flexibility during the development process by managing your code within a CVS repository and using the Phing build system.
  • Capitalize upon the quality code of others by using the PEAR package management solution.

Who is this book for?

PHP developers seeking to embrace sound development techniques such as object–orientation, design patterns, testing, and documentation



About the Author

Matt Zandstra has worked as a Web programmer, consultant and writer for a decade. He has been an object evangelist for most of that time. Matt is the author of SAMS Teach Yourself PHP in 24 Hours (three editions), and contributed to DHTML Unleashed. He has written articles for Linux Magazine and Zend.com. Matt works primarily with PHP, Perl and Java, building online applications. He is an engineer at Yahoo! in London.

Matt lives in Brighton with his wife Louise, and two children, Holly and Jake. Because it has been so long since he has had any spare time he only distantly recollects that he runs regularly to offset the effects of his liking for pubs and cafes, and for sitting around reading and writing fiction. Learn more on Matt's website, getInstance.


Product Details

  • Paperback: 487 pages
  • Publisher: Apress; 2 edition (December 20, 2007)
  • Language: English
  • ISBN-10: 1590599098
  • ISBN-13: 978-1590599099
  • Product Dimensions: 9.1 x 6.9 x 1.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (9 customer reviews)
  • Amazon.com Sales Rank: #40,549 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #12 in  Books > Computers & Internet > Web Development > Programming > PHP
    #49 in  Books > Computers & Internet > Programming > Software Design, Testing & Engineering > Object-Oriented Design

More About the Author

Matt Zandstra
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Matt Zandstra Page

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?

PHP Objects, Patterns, and Practice, Second Edition
64% buy the item featured on this page:
PHP Objects, Patterns, and Practice, Second Edition 4.6 out of 5 stars (9)
$29.69
PHP Object-Oriented Solutions
12% buy
PHP Object-Oriented Solutions 4.8 out of 5 stars (6)
$24.41
Practical Web 2.0 Applications with PHP
9% buy
Practical Web 2.0 Applications with PHP 4.6 out of 5 stars (18)
$30.34
Pro PHP: Patterns, Frameworks, Testing and More
8% buy
Pro PHP: Patterns, Frameworks, Testing and More 3.9 out of 5 stars (11)
$33.64

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(8)
(5)
(4)
(1)

Your tags: Add your first tag
 

 

Customer Reviews

9 Reviews
5 star:
 (6)
4 star:
 (2)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (9 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
20 of 20 people found the following review helpful:
4.0 out of 5 stars Very good book, despite some muddled spots, March 20, 2008
By Kevin D A Major (Barrington, NH United States) - See all my reviews
I've owned PHP Objects, Patterns, and Practice for over a year, and it's still one of those books I go back to. It's a well written, generally well executed book on what constitutes Object Oriented Programming in the PHP5 environment.

First, the good news:

This book is a crash course on OOP design and thought. It borrows heavily from two monumentous texts in the field - the Gang of Four's book, and Java Enterprise Patterns - and condences their essences into an easy to swallow form. The basics are all here: how to create well designed classes, how to instantiate objects, etc. There's a hidden gem in the introductory portion of the book: the Reflection API. This API is built into PHP, and gives the coder unparalleled access to the guts of the classes and objects in a given project. It definitely has its uses.

The patterns are all generally useful, with the only exception perhaps being the Interpreter pattern. I'm just not convinced that creating one's own command line interface syntax is necessary, given that PHP projects aren't usually interactive. It seems like something best left to an appendex, or extra web content.

Now, for the bad news:

Some sections of the book, especially some of the code examples, could've used a better editor. Small things, the kinds of things that can trip up inexperienced coders, crop up. Using private properties instead of protected. Using the wrong variable name between examples. That sort of thing.

There's also a lack of a satisfying conclusion, so-to-speak. Zandstra himself claims that generating objects is perhaps the hardest thing to demonstrate. Yet, most of his examples (excepting the patterns late in the book) are canned. Objects and classes exist only to drive the theory behind a pattern home. Few real world examples are given. Admittedly, some patterns are simple to transfer to a real project, but concrete examples of that nature could serve to further cement his point. For example, it's not difficult to see how the Composite pattern would work well for dealing with an XML document, but would there ever be a need for a Visitor object to act on one?

Finally, and in continuation of my last criticism, Zandstra never touches one of the things PHP is used the most for: form handling. Can forms be represented by classes? Could forms be generated by objects (perhaps using a Factory pattern)? What about form validators? Wouldn't the Strategy or Decorator pattern work? Supplementing his online Civilization game and CLI/quiz examples with this would've really put the book over the top.

Still, with that said, PHP Objects, Patterns, and Practice is still a text that gets far more right than wrong. It's definitely a must-buy for those PHP coders looking to write modular code.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
10 of 10 people found the following review helpful:
5.0 out of 5 stars Best OO book on PHP ever, March 18, 2008
This is the best book I've read on Object Orientated PHP. This book does a great job of explaining the ins and outs of OO in PHP 5. As a self taught PHP developer of 5 years, I had lots of questions about "am I doing this right", "how should this be done" and the book has answered most of those questions.

I'd recommend the book to those who already have an advanced PHP knowledge but are looking to take their code another step forward by improving it's re-usability. It's also a great read if you want to find out the power that PHP 5 has over PHP 4.

Note: this book doesn't contain code that you can use. It teaches you the principles that you should use in your own projects.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 6 people found the following review helpful:
5.0 out of 5 stars 4.5 stars really, but overall a very good investment, November 17, 2008
By Michael Ekoka (Montreal, Qc Canada) - See all my reviews
(REAL NAME)   
It's been about a year and a half since I've read this book, I have the first edition, but I think most of what I write is still relevant for this second one.

This book deserves 4.5 stars, but I could enter either 4 or 5. I'm giving it 5 because at the moment, very few php books come close in trying to actually present the language as a real contender for serious and professional web development. This book might change the mind of many who've always thought of php as a hobbyist language.

PHP has come a long way since its inception, but the teaching material has not really caught up and the community is still pestered with bad code, architecture and practice. This book is an eye opener as it presents php for what it can be: a convenient and flexible tool that, in the right hands, can tough up and do great things. After this you might seriously question your decision to go Java. It's not to say that php can do everything, but before you move away, you should definitely understand why. The book has 3 parts:

The object section is a nice introduction to the goodies in the new php5 object model. As a matter of fact, the entire book is php5 centric, which to me is a plus. You'll learn about such things as the __call, __get and __set "magic" methods, the __toString method, the Reflection API, just to name a few. By the end of this section, you should have a clear idea why it might be good to let php4 rest. One thing sorely missing though, is an intro to the SPL.

The Pattern section is probably the bulk of the book. It's a nice attempt at bringing some java into your php coffee. An intro to the world of design patterns as they can be applied to php. You'll learn about different "enterprise" patterns (there's that java buzzword), to help you better structure and organize your code. If you've heard of such things as Singleton, Observer, Registry, Controller, MVC and are still scratching your head, this might be a good investment.

The Practice section was a bit of a let down. If the author cares for some suggestions:
- forget CVS: there are currently two popular and very good open source version control libraries, SVN and Git. Git being slightly more complex to understand, but in terms of performance and usefulness, in a class of its own.
- forget PEAR: instead have a chapter on frameworks, or maybe particularly about the Zend Framework, which is as close an approach you can get to modular object oriented libraries. ZF embodies exactly what this book tries to preach and is completely written in PHP5. I think it is the perfect candidate to replace PEAR in that section of the book.

Just my 0.02$.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Excellent Book For Advanced PHP
This is a very advanced book on PHP. It assumes a solid understanding of object-oriented PHP programming, although it does offer a basic review of OOP practices. Read more
Published 14 days ago by Timothy Piele

5.0 out of 5 stars One of the few solid professional PHP books.
One of the only truly professional PHP books out on the market that we recommend at Sevenforty [...] to other developers. Read more
Published 8 months ago by Steve-o

4.0 out of 5 stars Buen libro de POO y PHP (Good OOP PHP book)
Explica con palabras sencillas los conceptos de programacion orientada a objetos (POO) y como aplicarlos en PHP, sin embargo pienso que el autor aveces se extiende demasiado para... Read more
Published 13 months ago by J. R. Perez

5.0 out of 5 stars Interesting and easy to read PHP OO primer
I have experience in a variety of object oriented (OO) languages, but not PHP. This book has helped me understand how PHP supports objects and some of the typical design patterns... Read more
Published 16 months ago by yoyodyne

3.0 out of 5 stars Great book but...
This is a really great book for advanced developers who whant learn abount php5 OOP technique; it explain very well how objects work and how to use the most famous patterns but it... Read more
Published 20 months ago by Gianluca

5.0 out of 5 stars Great Book!
I've personally read about 100+ IT-related books, ranging from Certification Crams, Networking, Programming, and even computer repair. Read more
Published 20 months ago by infolock

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Textbooks for Kindle DX? 61 1 day ago
textbook scam 66 5 days ago
Amazon is a great place to buy textbooks! 35 17 days ago
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.