Book Review: Zend Enterprise PHP Patterns
Thursday, February 18th, 2010Today we have a brief review of the book “Zend Enterprise PHP Patterns”. I want to thank the Utah PHP Users Group for the gift of this book, along with the great knowledge base and friendship that come with participating with them. If you are in Utah, and specifically in the Wasatch Front Area you should really check them out.
Zend Enterprise PHP Patterns written by John Coggeshall with Morgan Tocker. Published by apress publishing. About the authors: “John Coggeshall is CEO of Internet Technology Solutions . . . and the former Senior Architect of Zend Technologies’ Global Services team.” He has been using PHP since 1997 and can be followed on twitter by adding @coggle. Morgan Tocker “is a Consultant at Percona, a company that provides consulting and custom development for MySQL.”
Lets start by talking about what PHP is. PHP stands for Hypertext Preprocessor and is a server-side scripting language for web development. It started in 1995 and quickly became popular not only because it was easy and free to deploy but it was also easy to use. It has colloquially been called the little kids scripting language and often seems to be the but of jokes due to an apparent overuse by those with a lack of coding standards. My own friend Synic told me once that part of his issues with PHP was that code that does the work, and code that displays the UI should be held separate (MVC development model), and that without a proper framework PHP could not be separated.
In steps the Zend Framework (and consequently this book) do discuss a tool to put PHP applications into the enterprise level. As said on page 1, “When developing an enterprise application in any language, tooling is almost as important to you as the way you use the tools. . . When it comes to tooling, the PHP world is no different. While I’ll admit there are decidedly fewer options available to a PHP development team, those options that do exist are impressively robust and easy to use. One such category of tools is frameworks that help ease the pain of development and maintenance of application for their entire lifetime while promoting best practices. One such framework is Zend Framework (ZF).”
When deciding which of the frameworks to use, why use Zend Framework? Why not CakePHP or Codeignitor or any of the other php frameworks? “Zend Framework is quiet different than most other PHP-based frameworks in the sense that your commitment to using the framework is left entirely to you. Where most frameworks force you into specific coding practice or impose on you a specific way the framework must be used to be effective, Zend Framework is based on the notion that each component can be used completely independently of the rest of the framework.”
As you continue to explore the Zend Framework throughout the book you are lead through simple examples of every part of the development process. From creating a simple “Hello World” application using the MVC development model, to deploying your application on a PHP server farm this book gives an easy to follow formula for getting the job done.
Be forewarned, if you are a beginning PHP developer, or don’t feel quiet up to snuff as an intermediate user this book will be target over your head. To have a full grasp of what is going on an intermediate to advanced understanding of PHP and general coding is required. The book can be found on Apress.com.
