Easy PHP Websites with the Zend Framework

By: W. Jason Gilmore
Publication Date: March 10, 2011
Price: $22.99
Pages: 240
Format: DRM-free PDF

This book is no longer for sale on WJGilmore.com. Please purchase on Amazon.com.

Learn how to build powerful websites fast with this hands-on guide to the Zend Framework. Select topics include Zend_Auth, Zend_Db, Doctrine 2, testing with PHPUnit and Zend_Test, and automated website deployment using Capistrano!



Framework-based web development is practically a requirement these days. Fortunately for the PHP community there are plenty of PHP-based frameworks to choose from, including the powerful Zend Framework. “Easy PHP Websites with the Zend Framework” is the most up-to-date guide to the Zend Framework, covering all of the topics which will help you build websites with amazing speed and efficiency.

Newcomers to the Zend Framwork are welcome! We’ll kick things off by showing you how to use the ZF command-line tool to create your first Zend Framework project, build actions, controllers, and models, and effectively manage your project views and layouts. From there we’ll work through a wide variety of key topics, including:

  • Effectively manage your Zend Framework layouts and views, and create view helpers which can be reused throughout your website
  • Integrate Doctrine 2 into your Zend Framework application
  • Manage configuration data using the Zend Framework’s Zend_Config component
  • Build model-driven forms which can easily be tested using PHPUnit and Zend_Test
  • Mine the Amazon.com product catalog using the Amazon Product Advertising API
  • Test your website using PHPUnit and Zend_Test
  • Deploy your website quickly and conveniently using Capistrano
  • Write PHP-driven CLI scripts which can take advantage of Zend Framework components

You’ll also learn about the Zend Framework’s deep integration with popular web services, and work through examples involving mining data from the Amazon Product Advertising API using Zend_Service_Amazon. You’ll also learn how to create Zend Framework-enabled scripts which can be executed from the terminal for reason of performing batch operations, and even integrate these scripts into your website ecosystem in order to draw upon configuration data and third-party resources.

Almost every chapter concludes with a section explaining how to effectively unit test different parts of your website, and an entire chapter is devoted to configuring PHPUnit and Zend Test.

A concluding chapter is devoted to showing you how to automate the deployment process using Phing and Capistrano.

Sample Project

GameNomad is a social networking website for the video gaming community. Constructed using the Zend Framework, Doctrine 2, and incorporating many of the features discussed throughout the book, readers are provided with all of the source code used to power the site!

Test Your Knowledge

Each chapter concludes with a quiz which you can use to test your comprehension. A total of 41 questions are spread throughout the book, with all answers found in the back of the book!

Free Updates for Life

Readers of this book are provided with free electronic updates for the project’s lifetime. You will be notified via e-mail every time a new version of the book is made available through the website.