If we reach 60 likes and tweets then we will prepare the X-mas edition and we will start selling it three days before Christmas.
If ten days before Christmas we reach well over the 120 likes and tweets we will prepare a special giveaway for the paperback version 🙂

So if you want to get a copy of the book or give it as a present to a friend do not hesitate to like/retweet.

* The second edition in PDF format.
** the price is before tax and/or any commission(s) from the credit-card processing companies or any additional charges.

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!

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.

Soon we will update the Learn ZF2 book to add more content related to Testing and Abstract Factories + Caching. I would like to thank our readers John Chadwick, David Mintz and Clark Everetts for helping us make this happen. And special thanks to our editor Doug Bierer, who reviewed and polished the content.

If you are still wondering which Zend Framework 2 book to buy, then check David Mintz’s review of “Learn ZF2”. He has done marvelous job in explaining it all and his review is one of the most helpful reviews of a technical book that I have read recently.

“Learn ZF2 is a relatively slim, tutorial-style book rather one that tries to be a comprehensive, 800+ page reference weighing 10 kilos — good news for Luddites who still like to carry paper around with them. Author Slavey Karadzhov does an admirable job of explaining, step by step, a system that is undeniably complex — and manages to do so with few if any forward references to things that have yet to be introduced.”

“…the text and code examples, my understanding of Zend Framework 2 has already advanced by orders of magnitude. This is exactly what I needed to get over the hump. Learn ZF2 is a splendid little book, and an excellent choice for web developers who want to learn this powerful and elegant framework.”
* The title of this news is taken from David’s review.

At the moment PHP7 is still in heavy development and the installation and updates in your existing operating system can be challenging. Therefore we have prepared for you a script that can help you create an isolated development environment with PHP7 and the sample application from “Learn ZF2” in it for your testing pleasure. Of course you can add your own PHP applications to the box and test if they are working with PHP7.

Here are the steps that you need to create your own dev box with PHP7.

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:

We have noticed that in real world applications routing can take
300 ms or more. With this module the routing can take less than 40 ms.

Installation

Run the following command from the root folder of your ZF2 application.

php composer.phar require learnzf2/route-cache:*

php composer.phar require learnzf2/route-cache:*

Setup

First: To enable the module make sure to add it to the list of modules in your config/application.config.php.

Second: This module requires a cache service that is called “var-cache”. The cache service
should be able to store variables. If you already have such a service but it has a different name then you can use aliases in the service_manager section of your application configuration. This can be achieved by adding the following lines: