Zend Framework 2 Cookbook and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Start reading Zend Framework 2 Cookbook on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Zend Framework 2 Cookbook [Paperback]

Josephus Callaars
4.5 out of 5 stars  See all reviews (2 customer reviews)
Price: £30.99 & FREE Delivery in the UK. Details
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.
Dispatched from and sold by Amazon. Gift-wrap available.
Want it Friday, 25 July? Choose Express delivery at checkout. Details


Amazon Price New from Used from
Kindle Edition £19.56  
Paperback £30.99  

Book Description

19 Dec 2013 1849694842 978-1849694841

A guide to all the ins and outs of Zend Framework 2 features


  • Recipes to help you create, test, and optimize your applications
  • A useful guide for PHP developers wanting to broaden their horizons
  • Helps you understand how MVC works and how to make it work for you

In Detail

Zend Framework 2 is the latest creation of World Wide Web infrastructure company Zend Technologies Ltd. This new PHP framework comes with tons of features and an attractive way of creating applications. Not only is the overall usability of the technology much better, but it also makes your applications more testable, something that is often overlooked.

"Zend Framework 2 Cookbook" will show you how applications are set up in Zend Framework 2 and how you can develop successfully in this massive framework. You will master features like Modules, Views, Controllers, and Authentication. The book also discusses the Event Manager, unit testing, and how to optimize your application.

The book begins with a discussion about setting up Zend Framework 2, and you will also look at how the framework itself works. By the end of this book, you will be able to create entire secure applications on your own and make sure they are tested and optimized for performance as well.

You will learn about sending and receiving e-mails, translation and localization of the application, and how to set up the framework on a Linux web server. You will also learn how to display data from the application to the user by using different display strategies and renderings. The creation of modules will also be discussed. Then, you will move on to look at how to authenticate users and make sure the developer knows how to pick the best method available. Unit testing, debugging, and enhancing the performance will also be covered in this book.

"Zend Framework 2 Cookbook" is a perfect book for anyone who wants to start developing with Zend Framework 2.

What you will learn from this book

  • Set up Zend Framework 2 on a Linux web server
  • Make your application accessible in other countries and languages
  • Choose and create custom output display renderings
  • Set up modules and use them as widgets
  • Connect and query different types of databases
  • Create the best authentication method
  • Optimize framework applications
  • Debug and test framework applications


This book is written in a practical, cookbook style with numerous examples and recipes. This style allows you to go both directly to your topic of interest or follow topics throughout a chapter to gain an in-depth knowledge of certain areas.

Who this book is written for

”Zend Framework 2 Cookbook" is for PHP developers who are fairly advanced in programming in PHP. It will also be useful for developers who have a keen interest in expanding their knowledge outside the boundaries of simply scripting pages together. As unit testing and MVC will be discussed, it is beneficial for the reader to know what these technologies are, although experience with developing applications is not necessarily essential.

Frequently Bought Together

Zend Framework 2 Cookbook + Learn ZF2: Learning By Example + Zend Framework 2 Web Application Development
Price For All Three: £90.16

Buy the selected items together

Product details

  • Paperback: 340 pages
  • Publisher: Packt Publishing (19 Dec 2013)
  • Language: English
  • ISBN-10: 1849694842
  • ISBN-13: 978-1849694841
  • Product Dimensions: 1.8 x 18.8 x 23.1 cm
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 749,035 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Josephus Callaars

Josephus Callaars is a software developer whose passion began like so many other developers at the appropriate age of twelve. Being intrigued by mathematics and software languages such as Assembler and Java, he quickly found out that his career was to be found in the abstract side. Since 2003 he has been developing software applications commercially, and always tried to stay up-to-date with the latest technologies.

Josephus has been passionate about developing ever since, and always thought it could be done better every time. He is a Zend Certified Engineer and is regularly to be found in the open source community, where he is always on the lookout for new things to learn.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

3 star
2 star
1 star
4.5 out of 5 stars
4.5 out of 5 stars
Most Helpful Customer Reviews
4.0 out of 5 stars Zend Framework 2 Cookbook 25 April 2014
By vidockq
Zend Framework 2 Cookbook is a read that will give you all the tools you need to make new recipes but do not expect it do to all the work for you.
While it will explain all the Basics, and run throw different chapters like Configuring and Using Databases, Modules, Models, and Services, Handling Authentication ... and some more it will never go truly deep with the explanation nor will it bond all these chapters in one flowing book.
This is by no means bad, because you know from the start its a Cookbook, and it does just that without going into to much details on the rest.

I would recommend this book to someone who is already acquainted with Zend Framework 2 programming skills and just want to expand a bit or just see alternative to how yourself code.

Zend Framework 2 Cookbook: bit.ly/1tcQurL
Comment | 
Was this review helpful to you?
5.0 out of 5 stars Very useful 21 Mar 2014
Meanwhile, there are some books about the Zend Framework 2. The Zend Framework 2 Cookbook is one of them. I read it and am very excited. After an introduction to the Zend Framework 2 all important modules of the ZF2 are discussed in various chapters. Among other things, the sending of e-mails, forms, authentication are discussed too.
It also addresses the optimization of performance.  In the book, a lot of code examples are provided.
I find the book very successful. It is explained very well . Definitely recommend this book!
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 4.8 out of 5 stars  4 reviews
2 of 2 people found the following review helpful
5.0 out of 5 stars Zend Framework 2 Cookbook - As good as meeting some new 26 Feb 2014
By Pule Nong - Published on Amazon.com
Everyone knows that a cookbook does not necessarily teach you how to cook but shows you how to prepare a specific recipe. On the same breadth this is a Zend Framework 2 Cookbook. This book does not teach you how to build any sort of application as such. Instead it shows you small code segments that you can employ when building your Zend Framework 2 application projects.

Let us now look at what this book brings about. This is a 329 pages book with a lot of tips on how to utilize Zend Framework 2 features. The featured tips range from: handling authentication, catching bugs, optimizing your application performance, handling and decorating forms, translating your application to other languages, to how to configure and use databases. The book has a total of nine chapters. The source code for programs featured in this book can be found at bit.ly/1a5zoUf .

Reading this book is like meeting someone new. You get to appreciate and learn new things and even gain insight into how to do things differently than you have been doing. This is a good book whose value can be best appreciated after having built a Zend Framework 2 application yourself. My verdict - I give this book a 4/5 rating. I highly recommend this book to anyone wishing to polish their Zend Framework 2 programming skills.

I must as a matter of fairness and transparency mention that this book was availed to me by the publisher to review.
1 of 1 people found the following review helpful
5.0 out of 5 stars good reference 2 April 2014
By ovunc tukenmez - Published on Amazon.com
The expectations will be very high for a cookbook since the reader would want to see a solution for every difficulty he/she faces with.

When it comes to ZF2, if you are beginner, things may look strange even if you look official programmer's reference guide of Zend Framework 2.
The books starts with the basics. In this chapter you see how to setup skeleton application and routing (with the explanation of different "route types"), a short explanation of DI, how to create config files, in which order they merges and why we need local and global ones. ZF2's event driven architecture is also explained with an example.
In the second chapter, you see how to translate and localize your application with the I18 module. You see different ways to setup translation files (with arrays, using gettext or ini files) You will also learn how to use Poedit to translate .po files. How to select different languages identifying client language is also explained. Next you skip to the mail section where you will understand how to send email with different approaches.
From chapter 3 to 7, most used zf2 components during development process are explained. Using forms to get the input from the user, validating and filter them, working with view, what are the view helpers and how to use and create them, switching to different output using view strategy/renderer, details of layout system, how to configure and connect to database, which database engines that available, why we should createStatement() function instead of query() function, CRUD operations with TableGateway, advanced select query generation, db profiling, details of modules, modules and services are explained in these chapters.
In 7th chapter different authentication methods are explained. You will also learn how to setup and create auth service, how to force HTTPS protocol, certificate validation.
In the next chapter, different caching mechanisms are explained in order to optimize performance.
Last chapter is dedicated to error handling and unit testing.

In the appendix you will learn how to set up the essentials with the Zend Server Community Edition or using phpcloud service for your development process. Basic ZF2 structure is also explained here. As a bonus, there is a flow chart diagram to understand what happens in the system after a request made.

If it had the Navigation (with ACL) section, it would be better however once you get the idea how the framework components work, it becomes very easy task for you.

In conclusion, it is nice to have this book for a reference even if you already familiar with ZF2 to learn new ways to do things.
1 of 1 people found the following review helpful
5.0 out of 5 stars Best of them all 20 Jan 2014
By William H Scholtz - Published on Amazon.com
Format:Kindle Edition
Believe me, since I switched to Zend framework 2, mid 2012, I have purchased and used all the manuals out there. I just wish this cookbook was available earlier. It is easy to read, the examples can not be more easier to explain, and is good for beginners right up to advanced users.
I strongly recommend this book, id you need to quickly start to work, and understand, the ZF 2 API.

No, let me re phrase, if you are building application in the ZF2 environment, this cookbook is a must!

This book is power. Again, why was it only published now?

William H Scholtz
4.0 out of 5 stars Good for beginners, lacks complex topics 10 April 2014
By Lenka Krafková - Published on Amazon.com
The book is written literally as a cookbook. However, as a cookbook doesn't make you a professional cook, this book also won't make you a professional developer. It contains number of recepies (such as "using database") that show you how to use certain parts of ZF2. This approach has some pros and some cons - it's good that you can find the part you're interested in (like the db) easily and learn how to use it. But there is one problem with this cookbook - the parts are not connected to each other. It's like a manual, but much better for beginners as it explains things in plain language in more logical order. It starts with the ZF2 basics (routing, events, DI) and slowly moves towards more complex topics such as authentication or performance optimization. I think that a user without any prior ZF2 knowledge would be happy with the book. I, as a little more advanced user, missed the more complex topics and connection between the parts.
Were these reviews helpful?   Let us know
Search Customer Reviews
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
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category