Category Archives: Updates

Updates about the book.

The new version of “Learn ZF2” is here!

As of today the new version of the book “Learn ZF2” is released!

I would like to thank our editor Doug Bierer, our interior designer Jivko Gradinarov and our readers John Chadwick, David Mintz and Clark Everetts for their hard work and support. Without you guys this version would not have been possible. You really rock!

If you want to get the latest version right now you can get it as

iBook version

PDF version

ePub version

Kindle/Mobi version

Paperback version

Amazon needs 3 to 5 business days to publish the new version. So if you want to get the paperback version from there then visit the following link AFTER a week.

And last, but not least, we are preparing an  X-Mas edition, that will be sold dirt cheap – for approximately $2.50 (without tax). Plus we will be giving away 5 paperback copies. If you want to increase your chances to win a book start mentioning this news in Twitter, Facebook or your favourite social media application. We will publish more details about the giveaways  later this month, so check this site for updates.

Isolated development environment for “Learn ZF2”

You Asked – We Listened. We have created an isolated development environment for “Learn ZF2” using vagrant and virtualbox.

One of our readers Paulius Mačernis has asked us for instructions how to build isolated development environment for the “Learn ZF2” book. Since yesterday we have Vagrant build file that can help you have your very own isolated development environment. You can apply these instructions for Windows, Linux and Mac OS X.

First you will need to install the latest version of Vagrant and Virtualbox. If you are using Ubuntu 14 you can check the instructions on that external page.

Then you need to clone the learnzf2-box repository using the following command:

git clone

And when the repository is cloned you have to start the virtual machine using

cd learnzf2-box
vagrant up

After some minutes you will have brand new isolated development environment with Ubuntu 14, apache web server, php 5.5 with mcrypt and sqlite modules and the latest version of the “Learn ZF2” source code from github.

In order to ssh to the virtual machine you can type

vagrant ssh

And in order to access the web server from outside you can type in your browser http://localhost:8080

The source code is in a shared folder named dev and can be accessed and modified both from inside the virtual machine and from your physical machine.

Updated version of “Learn ZF2”.

I am happy to announce that “Learn ZF2” has an updated version. The Kindle version is updated and published, soon to be followed by the paperback version (Amazon needs 3-7 days to update it in all stores), PDF and ePub versions.

This new version wouldn’t have been possible if it was not for the help, hints, recommendations and lines of code that our great contributors sent us. I would like to thank all of them: (in no particular order) Matt Comeione, Dmitry Oxman, Tim van Steenbergen, smozgur, Daniel Ventura, Matt X. Thanks a lot guys. You rock!

Updated Code in LearnZF2 Git Repository

We added two small code changes to the official code repository ( The first one is fixing a small typo in the TableGateway service from the User module and the second one is adding better documentation for using the final code with prefilled SQL database.

If you want to test it you can either do

git pull -f

or clone the changed source code in a new location

git clone

How to Prepare for Zend Framework 2 Certification

It seems that during the summer months a lot of Zend Framework 2(ZF2) users are preparing for ZF2 Certification exam. We received couple of questions related to this and we would like to share with you our recommendations and some insider news.

The ZF2 Certification covers the following major topics: Service Manager, Authentication and Authorization, Utility, MVC, Forms, Web Services, Performance, Security, Module Manager, Internationalization, Database and Event Manager. Which is a pretty broad spectrum and will require a lot of time to study thoroughly.

If you want to reduce that time we would recommend you to do the following steps in the same order as given below:

      Read “Learn ZF2” to understand how the different components in ZF2 are working and how to use them. Make sure that you have read all chapters and understood everything. This step is a must. All readers of the book, that we know of, who took the test also passed the exam. Even people that read the book the night before the exam.
      If you plan to take the exam after October, this year. Then read also the ZF2 Study Guide. Zend is working hard on finishing the ZF2 Study Guide and as far as I am allowed to say, it is expected end of September, the latest. We will inform you as soon as it gets published officially.
      Read the online manual for the topics that are not covered in the book: Web Services, Utility, Internationalization. Read also the topics that were covered in the book, but look for tricky details like for example filtered characters in the name of service managers.

That and a bit of luck should be enough to pass the exam and become proud owner of a shiny ZF2 certificate.

Good luck!

Zend Framework 2 on IBM i/AS400

We have a tip for you if you want to run the source code from the book on IBM i / AS400 machine. One of our readers, Sven Weiss, pointed out that the code doesn’t work out of the box on those systems. It is a known issue, caused by the different behavior of the glob PHP function on that platform. The fix is very simple. You have to edit the application config file located at: config/application.config.php and replace these lines

'config_glob_paths' => array(

with those:

'config_glob_paths' => array(
( !defined('GLOB_BRACE') ? getcwd().'/' : '').'config/autoload/{,*.}{global,local}.php',

We will try to provide a solution to the Zend Framework team, so that such a workaround is not needed in the future.

We will be covering new ZF2 topics.

We would like to give you more information about Zend Framework 2 for topics that were not covered in the “Learn ZF2” book. We will post that information as blog posts and eventually as additional content to the future versions of the book.

For that we will need your help. We have set up a survey where you can give your feedback. Slavey Karadzhov, who is internal Zend guy, will choose the best suggestions from your answers and forward them to Matthew, the ZF2 team leaders, for review.

You can take part in the survey by clicking on
this link

Share this link with fellow programmers so that we can get feedback from wider range of people.

Abstract Factories in the new version of the book “Learn ZF2”

At the end of the previous week we have published a new paperback and electronic version of the book that contains a small chapter contributed from our reader Tomasz Racia. Thanks to his contribution and help you can now learn about Abstract Factories in Zend Framework 2 and when it makes sense to use them.
We are planning to add other small additions to the book in the coming months to keep it always up to date. If you have already bought the Kindle edition then you can enjoy all coming updates free of charge.
I would like to thank again Tomasz (hats down ) and all other contributors that are helping us give you the best Zend Framework 2 book on the market.

We need volunteers for the Kindle version

After zillion of requests for the Kindle version and two unsuccessful attempts to automatically produce good looking Kindle version we are working on third attempt for more readable and relatively good looking kindle version of the book.

And we will need your help. We are looking for volunteers with Kindle devices that are willing to test the mobi files on their devices. What we would expect from you is a detailed feedback of the issues that you have notices plus photos of the pages that are looking odd or unreadable. So if you want to get a test kindle version of the book for free read the requirements.

– You need to have working physical Amazon Kindle reader.
– You need to have a device with photo camera with which you can make sharp images of the pages that look wrong
– (More-then-nice-to-have) Paper or the PDF version of the book with which you can compare the Kindle version.

If you meet the requirements write us an email at
– With subject “Learn ZF2 Kindle”
– In the email provide information about the version of Amazon Kindle that you have
– Attach a photo of your device (try to take a photo of some open text in your Kindle and try to make it as sharp and readable as possible).
– (More-then-nice-to-have) If you have the paperback version: Attach a photo of the last internal page of the book (on the bottom of this page there is information saying where the book was printed and a barcode).

We will compile the list of the approved testers and we will notify you and send you the files.