Instalacja Composera

Composer to narzędzie do zarządzania zależnościami w projekcie. Możesz dzięki niemu w łatwy sposób dołączać biblioteki lub uaktualniać je. Instalacja w linii komend Skopiuj i uruchom w linii komend następujący kod. Instalacja w Windowsie przez instalator Możesz ściągnąć instalator bezpośrednio ze strony Composera. Po uruchomieniu instalator zainstaluje Composer i uaktualni PATH sprawiając, że Composer będzie […]

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 create xdebug-box/recipes create xdebug-box/resources create xdebug-box/recipes/default.rb create xdebug-box/metadata.rb create xdebug-box/LICENSE create xdebug-box/README.md create xdebug-box/CHANGELOG.md create xdebug-box/Berksfile create xdebug-box/Thorfile create xdebug-box/chefignore create xdebug-box/.gitignore create xdebug-box/Gemfile create […]

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 in my last project. And which, IMO, should the MUST-BE in every Magento installation. PHP-Error https://github.com/panrafal/PHP-Error Better error display. My hack for it https://gist.github.com/piotrbelina/10d5544c5fc872ec2a77 Aoe […]

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 Gaufrette library and replaced all native PHP functions operating on IO. <?php use Gaufrette\Filesystem; class Generator {     /**      * @var Filesystem […]