or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

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 in Action: Objects, Design, Agility [Paperback]

Dagfinn Reiersol , Marcus Baker , Chris Shiflett
4.4 out of 5 stars  See all reviews (12 customer reviews)

List Price: $39.99
Price: $27.42 & FREE Shipping. Details
You Save: $12.57 (31%)
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
Only 4 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Friday, June 21? Choose One-Day Shipping at checkout. Details
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

July 10, 2007

To keep programming productive and enjoyable, state-of-the-art practices and principles are essential. Object-oriented programming and design help manage complexity by keeping components cleanly separated. Unit testing helps prevent endless, exhausting debugging sessions. Refactoring keeps code supple and readable. PHP offers all this-and more.

PHP in Action shows you how to apply PHP techniques and principles to all the most common challenges of web programming, including:

  • Web presentation and templates
  • User interaction including the Model-View-Contoller architecture
  • Input validation and form handling
  • Database connection and querying and abstraction
  • Object persistence

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.


Frequently Bought Together

PHP in Action: Objects, Design, Agility + PHP Objects, Patterns and Practice (Expert's Voice in Open Source) + PHP Object-Oriented Solutions
Price for all three: $78.30

Buy the selected items together


Editorial Reviews

About the Author

Dagfinn Reiersol has been designing and developing web applications, web content mining software, web programming tools, and text analysis programs, mostly in PHP, since 1997. He also has a long history as a technical writer of software manuals. He lives in Oslo, Norway.


Product Details

  • Paperback: 552 pages
  • Publisher: Manning Publications; 1 edition (July 10, 2007)
  • Language: English
  • ISBN-10: 1932394753
  • ISBN-13: 978-1932394757
  • Product Dimensions: 7.6 x 1.2 x 9.2 inches
  • Shipping Weight: 2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (12 customer reviews)
  • Amazon Best Sellers Rank: #858,491 in Books (See Top 100 in Books)

More About the Authors

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

Customer Reviews

Most Helpful Customer Reviews
25 of 29 people found the following review helpful
5.0 out of 5 stars best of the best October 6, 2007
Format:Paperback|Amazon Verified Purchase
Most books, I've read are written by full-time authors, rather than contractors (i.e. practitioners) ... and it shows ... in the "hello world", foo-bar examples ... for lack of immagination. This author has, clearly, been developing websites - for years; it's so evident throughout. Moreover, the author is VERY well read and aware of the latest development theories, practices, principles and design patterns. He writes with the wisdom of someone who has lived through long wars of website development and, more importantly to the reader, has found most practical ways to weave current design theory into guidelines for getting things done with PHP.

How many books have you finished and asked yourself, "ok, now, where do I start?". This is NOT one of those books. This, more than any other, answers the "How ...?" providing a whole process for starting, being sure of incremental progress, handling inevitable complexity and, ultimately, maintainability.

I've read over a dozen PHP books, usually picked based on Amazon recommendations (when available). This book stands head and shoulders ABOVE ANYthing I've found to date ... for its pragmatic blend of theory and practice. On a scale of 1 to 5 stars, this is at least an 11 (or better)! If you don't study this book, CAREFULLY, you're in for far more miserable coding experiences than necessary.

When I took the scenic boat ride through Oslo harbor, I had no idea that such a blend of PHP techniques and advanced coding theory was evolving in Norway! <G> It's such a beautiful ride ... try it.
Was this review helpful to you?
14 of 15 people found the following review helpful
4.0 out of 5 stars PHP In Action December 7, 2007
By Sam
Format:Paperback
This book is geared toward the intermediate PHP developer who wants to bring in aspects of OOP, Testing and Refactoring to help improve the quality of the code they write. It is split into four parts; Basic Tools and Concepts, Testing and Refactoring, Building the Web Interface, and Databases and Infrastructure.

In addition to PHP, I have decent amount of experience with Java and Java web frameworks such as Struts. So as I worked through this book much of the content was familiar to me but from a Java perspective. It was enlightening to see the authors express these same concepts from a PHP perspective. The fact that many times (not always), the implementation in PHP is more concise and elegant that the Java alternative really shows of the power of a dynamically typed language such as PHP. Also the fact that PHP was bred from the beginning to be a web development language gives it a definate advantage in the web arena.
The authors are honest though, they haven't simply painted implementing OO, TDD, and Refactoring as completelty painless. For instance in the testing portion they've devoted quite a bit of time to showing the difficulties of testing (especially in a Web environment). Such as the need for mock objects and the difficulty in keeping mocks "real enough" so they fail and pass as the real object would. This full disclosure is key for readers to estimate if the extra effort of a concept is worth the benefits for their particual situation.

Overall this is great book for the intended audience. It is not "black and white" about the solutions it proposes. Reasonable alternatives are given and the pros and cons of each are expressed.
... Read more ›
Comment | 
Was this review helpful to you?
7 of 8 people found the following review helpful
Format:Paperback
One thing I liked in this book is that it has lots of information for experienced web developers who are moving from a bigger framework (like .Net, Rails, or even Java) to PHP. It contains good practices for performing "framework-type" activities like database and HTTP request encapsulation. The chapters on controllers tells you how emulate MVC-like components in PHP.

The only problem I have with it is how the chapter intros were written. They read like page fillers that just break the smooth flow of the whole text. Most of them are personal experiences by the author(s) that were forcefully fitted to introduce a certain programming topic or issue. The thing is it just doesn't work.
Comment | 
Was this review helpful to you?
24 of 33 people found the following review helpful
3.0 out of 5 stars being a good PHP book isn't saying much November 28, 2007
Format:Paperback
The problem with PHP experts is that they're just beginning to catch up with experts in other OO languages. The author purports to compare and contrast Java and PHP in early chapters, but fails to point out a significant difference, although he uses such examples over and over: that object constructors that take no arguments may omit the (empty) parentheses in PHP, but not in Java. The author's explanations of certain design patterns are sorely lacking; for instance regarding the Strategy pattern, he uses the ambiguous term "pluggable" over and over but never once the term "algorithm", yet substituting algorithms is precisely what the Strategy pattern is designed for. There is some very good material on MVC -- he even has the courage to contradict Martin Fowler -- but mixed with suggestions that are myopic, such as the author's continued insistence that using PHP's various ob* (output buffer) functions are practically the only way to compartmentalize web page components should you choose to role your own framework, while ignoring the notion of layout definitions (a la Java's Struts/Tiles), which I am using successfully on a current project. So, while this is a much better thought out book than most on PHP, this needs a highly critical reading, something which most PHP programmers are probably not inclined to.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
2.0 out of 5 stars Not terrible
I'll start off by saying that I only read half of this book because it just wasn't helpful enough to me for me to finish it. Read more
Published on April 16, 2011 by Mark
5.0 out of 5 stars Great Introduction to Software Design Practices
An excellent book for the intermediate programmer working in PHP. Good balance of theoretical practice and technical implementations. Read more
Published on September 17, 2010 by Daniel R. Scannell
5.0 out of 5 stars Very Good Book
Simply put, this is one of the best books on OOP & PHP I have laid my eyes on. I got it based on a friend's recommendation. Read more
Published on January 19, 2009 by Mark Twain
5.0 out of 5 stars the HOW and why behind effectively using OOP in PHP projects
This book is amazing! It goes far beyond so many of the other PHP books that show you the OOP features in PHP5 along with a few non-real-world examples. Read more
Published on December 12, 2008 by bergstyle
5.0 out of 5 stars Super
Very good book for intermediate or advanced php developer, I'm very happy with the book.
Ruslan
Published on April 20, 2008 by D. Ruslan
5.0 out of 5 stars High quality -- excellent
This is definitely the best book I've read in the programming world. There are some very good PHP books, but this is so far the best. Why? Read more
Published on November 14, 2007 by K. Didriksson
5.0 out of 5 stars Solid book on PHP best practices
By far my favorite PHP book and the one that I recommend to everyone who asks me about improving their PHP knowledge. Read more
Published on November 8, 2007 by Eldon Alameda
5.0 out of 5 stars in depth
i browse through some topics in this book and it gives an in-depth description of the language. not too many PHP book is so in-depth. Read more
Published on September 27, 2007 by Epsilon Delta
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

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
 



So You'd Like to...


Create a guide


Look for Similar Items by Category