PHP Objects, Patterns, and Practice and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Start reading PHP Objects, Patterns, and Practice on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

PHP Objects, Patterns, and Practice [Paperback]

Matt Zandstra
4.3 out of 5 stars  See all reviews (33 customer reviews)

List Price: $44.99
Price: $30.27 & FREE Shipping. Details
You Save: $14.72 (33%)
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.
Want it Friday, June 21? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $19.79  
Paperback $30.27  
Rent Your Textbooks
Save up to 70% when you rent your textbooks on Amazon. Keep your textbook rentals for a semester and rental return shipping is free.
There is a newer edition of this item:
PHP Objects, Patterns and Practice (Expert's Voice in Open Source) PHP Objects, Patterns and Practice (Expert's Voice in Open Source) 4.3 out of 5 stars (33)
$27.48
In Stock.

Book Description

December 20, 2007 1590599098 978-1590599099 2

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 this book is for

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


Frequently Bought Together

PHP Objects, Patterns, and Practice + PHP Object-Oriented Solutions
Price for both: $53.67

Buy the selected items together
  • PHP Object-Oriented Solutions $23.40


Editorial Reviews

About the Author

 

Matt Zandstra has worked as a web programmer, consultant, and writer for nearly two decades.

He is the author of SAMS Teach Yourself PHP in 24 Hours (three editions) and a contributor to DHTML Unleashed. He has written articles for Linux Magazine, Zend.com, IBM DeveloperWorks, and php|architect Magazine, among others.

Matt works as a consultant advising companies on their architectures and system management, and also develops systems primarily with PHP, and Java. 

Matt also writes fiction.


 


Product Details

  • Paperback: 487 pages
  • Publisher: Apress; 2 edition (December 20, 2007)
  • Language: English
  • ISBN-10: 1590599098
  • ISBN-13: 978-1590599099
  • Product Dimensions: 7.1 x 1 x 9.2 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (33 customer reviews)
  • Amazon Best Sellers Rank: #884,653 in Books (See Top 100 in Books)

More About the Author

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

Customer Reviews

Most Helpful Customer Reviews
42 of 42 people found the following review helpful
4.0 out of 5 stars Very good book, despite some muddled spots March 20, 2008
Format:Paperback
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.
... Read more ›
Was this review helpful to you?
21 of 21 people found the following review helpful
4.0 out of 5 stars Kindle version has one small problem February 16, 2011
Format:Kindle Edition|Amazon Verified Purchase
In terms of content, this is an excellent book. It is probably a little too heavy for absolute PHP beginners, unless you're already well-versed in other modern programming languages. For people who only know PHP, or who don't know any languages and are looking to start with PHP, you should make sure you have a strong grasp of procedural PHP before heading this way.

That being said, the Kindle version has one major issue: the code samples. They look like someone printed them out with a dot-matrix printer, then scanned them at 150 DPI, saved as BMPs to preserve all the visual errors on the scan, and pasted them into the book as images. In other words, the code samples are not text at all - they are really, really crappy images and you will often find yourself squinting to make out all the details of the fuzzy "text".

This isn't a dealbreaker - after all, any programming book you buy today has downloadable samples of all code available somewhere on the Internet... but it IS an annoyance. Why they couldn't produce the code in real text with an alternate font I have no idea. Why they couldn't present higher quality images of the code I also have no idea.

Suffice to say, if you buy this for the Kindle, expect 5 star content with 3 star presentation - thereby bringing us to 4 overall.
Was this review helpful to you?
14 of 14 people found the following review helpful
5.0 out of 5 stars Best OO book on PHP ever March 18, 2008
By Stats
Format:Paperback
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 | 
Was this review helpful to you?
11 of 11 people found the following review helpful
4.0 out of 5 stars Overall a good investment November 17, 2008
Format:Paperback
It's been about a year and a half since I've read this, I have the first edition, but I think most of what I write is still relevant for this second one.

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 attempts just that.

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 allow a programmer to get work done efficiently. It's not to say that php can do everything, but before you blame it as the root of all evil, you should definitely understand how you, the programmer, can work at improving the quality of your code. This text offers some insight into tried and true practices, usually well established in other more mature communities.

There are 3 parts:

The Objects part is a nice introduction to many goodies in the new PHP5 object model (the whole thing is php5 centric).

Some of the topics covered in the section matter more than others imo, since in your practice you'll encounter and will definitely draw some values from them. So pay particular attention to: Autoloading, Exception handling, magic methods, namespaces, reflection.

Because PHP is still a language in search for an identity, it borrows features, coding styles and development philosophy from other languages. Despite the fact that the two are fundamentally very different, Java has heavily influenced PHP's OO design and syntax.
... Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars This book is great for people with or without php experience
This book is great even for people with some PHP experience 'cause it introduces several practices and topics really useful nowadays, like continuous integration. Read more
Published 1 month ago by Thiago
5.0 out of 5 stars It presents what is expected
Good overview and some detail of OOP using PHP and great material on PHP design patterns. I think it's the best book out there on PHP design patterns.
Published 2 months ago by boston student
4.0 out of 5 stars Great book for object theory
This is a great book if you want to get into using objects in PHP. I goes into lots of object theory and patterns. It does not go into existing PHP built in objects.
Published 3 months ago by Kay Green
5.0 out of 5 stars Great next step for those looking to build real software in PHP
I learned programming with Java and have been using PHP for years. I'm really happy to see the adoption of OO in php and this book really helps to go over some great programming... Read more
Published 3 months ago by Michael Bender
5.0 out of 5 stars THE BEST BOOK EVER
This is the best book ever for PHP OOP. I have a paper copy and decided to buy another copy to keep on the kindle. It covers pretty much all popular patterns on PHP OOP. Read more
Published 5 months ago by Jay D
1.0 out of 5 stars Apress (A is for Amateur)
I bought this book new. When it arrived, I flipped through it close to my face because I love a whiff of that new book smell. Read more
Published 7 months ago by Curtis Zimmerman
5.0 out of 5 stars serious, deep, useful, necessary
It's my second review about this book. The first time I read this book I felt that was very useful, but I also thought that "I don't need everything". Read more
Published 7 months ago by bla
3.0 out of 5 stars Good for those who came from the old php
There's a lot of online tutorials where is explained how to design solutions without the power of php 5.3, and mostly without and POO way. Read more
Published 7 months ago by Juan Manuel Agüero
4.0 out of 5 stars Great transition book from procedural to object-oriented programming
I am a long-time user of PHP, but had been stuck in procedural programming methods. I have gone through several books on object-oriented methods, but it took this book to actually... Read more
Published 8 months ago by ehymel
5.0 out of 5 stars Finally - OOP for PHP made real
I learned object oriented programming (OOP) with C++ and have always liked the flexibility and power that is inherent in that language and approach. Read more
Published 9 months ago by William A. Kudrle
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!


So You'd Like to...


Create a guide


Look for Similar Items by Category