Vagrant, Chef, PHP and XDebug

How to install XDebug with Vagrant and Chef Install Chef Development Kit Create new cookbook Ôם dev berks cookbook xdebug-box create xdebug-box/files/default create xdebug-box/templates/default create xdebug-box/attributes create xdebug-box/libraries create xdebug-box/providers … Continue Reading →

Summarizing Backend vs Frontend Page Performance using Scalding

Some time ago I started collecting the page performance data using boomerang.js. As a data storage I simply used access logs. The result is quite predictible. Most of the load … Continue Reading →

Choose the right tools for your Magento project

Magento can be hard. We all know it. We can make your work easier by picking the right tools. I wanted to share with you the stuff I am using … Continue Reading →

Using PHPUnit with Gaufrette to unit test IO-dependent behaviour

Recently I wanted to test some class which uses heavily IO. I was refactoring some legacy code depending on file_get_contents and other file functions. To allow easy testing I added … Continue Reading →

Magento: Enabling modules via local.xml

I wanted to enable some modules only locally, without the possibility to use them on production. This would eliminate a vulnerability of leaking debug data. As an example I will … Continue Reading →

Magento: Debugging Webservices

During an audit I had to check with a debugger how one of Magento Webservices works. I found a post on Troubleshooting Magento Web Service using Python so I could … Continue Reading →

Symfony 2: Sending a file to download from controller

Here is a snippet how to send a file to download. It creates a zip archive and sends it. <?php namespace Acme\DemoBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\ResponseHeaderBag; … Continue Reading →

Magento, Composer and Dependency Injection

Recently I found an information about┬áComposer installer for Magento. I explored this a little bit and I managed to include some other packages (Monolog) and Symfony’s bundles into magento installation. … Continue Reading →


I’m starting a new programming blog. I will write about: PHP Symfony Magento Python Hope you will find it useful.