Featured Post

[PL] Problem tysiąca i jednej kontrolki

Liczba tysiąc była przez wieki dla wielu osób liczbą magiczną. Łacina oznaczała ją literą M (łac. Millenium). W roku 2000 wszyscy mieliśmy okazję doświadczyć tzw. pluskwy milenijnej lub problemu roku 2000, związanego z datowaniem. Otóż do roku 2000 w wielu systemach posługiwano...

Read More

Integrating FirePHP with Zend Framework 2 using Composer

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 23-03-2013

Tags: , , , , , , ,

0

Introduction

If you previously integrated FirePHPCore with Zend Framework using this description just remove require_once(realpath(__DIR__ . ‘/../../vendor/firephp/FirePHPCore/FirePHP.php’)); instance, where you include FirePHP library in global.php

Modifying Composer configuration

Now you need is to update composer.json file as follow:

At the end update your vendor libraries:

Now you should be able to use FirePHP using Zend\Log writer and as standalone \FirePHP::getInstance(true)

And that is all in this topic.

Integrating FirePHP with Zend Framework 2

Posted by Tomasz Kuter | Posted in Programming, Web development | Posted on 22-03-2013

Tags: , , , , , , , , , , , , ,

1

In this post I will show you how to easily integrate FirePHP – Mozilla Firefox extension with Zend Framework 2. FirePHP enables you to log to your Firebug Console using a simple PHP method call. All data is sent via response headers and will not interfere with the content on your page. FirePHP is ideally suited for AJAX development where clean JSON and XML responses are required.

General information

At the beginning some basic notes:

So download server side version and unpack the archive.
Find the FirePHPCore inside and copy it to /vendor/firephp directory.

At this step you should have FirePHP.class.php in the /vendor/firephp/FirePHPCore/.

Now rename FirePHP.class.php to FirePHP.php.

Once you successfully installed FirePHP extension in Mozilla Firefox you can get to next step – setting up the Zend\Log in our tutorial application.