2017 © Pedro Peláez
 

library remote-dump-bundle

PHP var_dump debug library with websocket

image

wusuopu/remote-dump-bundle

PHP var_dump debug library with websocket

  • Thursday, August 28, 2014
  • by wusuopu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

RemoteDumpBundle

A tool used for remote debug php code., (*1)

Installation

RemoteDumpBundle requires nodejs to dump debug messages., (*2)

Composer

Using Composer for installation:, (*3)

{
    "require": {
        "wusuopu/remote-dump-bundle": "dev-master",
    }
}

app/AppKernel.php

Register the RemoteDumpBundle in 'dev' && 'test' enviroment:, (*4)

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    // ...
        $bundles[] = new Wusuopu\RemoteDumpBundle\RemoteDumpBundle();
    }
}

Nodejs

Install nodejs and install these packages., (*5)

$ cd SocketServer
$ npm install

Usage

Start web server:, (*6)

$ cd SocketServer
$ node app.js

Then open the url http://127.0.0.1:9090/ in webbrowser., (*7)

Use in php:, (*8)

use Wusuopu\RemoteDumpBundle\Util\DumpUtil;
DumpUtil::dump($data, $url = "http://127.0.0.1:9090/");

or:, (*9)

$this->getContainer()->get('wusuopu.remote_dump')->dump($data);

Now in the webbrowser, the data will be displayed., (*10)

Config

It register some service listeners for kernel event. You can disable/enable these module using these config options. Here are default config options., (*11)

wusuopu_remote_dump_listener_enable: true
wusuopu_remote_dump_listener.request: true
wusuopu_remote_dump_listener.controller: true
wusuopu_remote_dump_listener.view: true
wusuopu_remote_dump_listener.response: true
wusuopu_remote_dump_listener.finish_request: true
wusuopu_remote_dump_listener.terminate: false
wusuopu_remote_dump_listener.exception: true

The Versions

28/08 2014

dev-master

9999999-dev https://github.com/wusuopu/php-remote-dump-bundle

PHP var_dump debug library with websocket

  Sources   Download

GPL

The Requires

 

debug symfony websocket dump

22/08 2014

0.0.2

0.0.2.0 https://github.com/wusuopu/php-remote-dump-bundle

PHP var_dump debug library with websocket

  Sources   Download

GPL

The Requires

 

debug symfony websocket dump

19/08 2014

0.0.1

0.0.1.0 https://github.com/wusuopu/php-remote-dump-bundle

PHP var_dump debug library with websocket

  Sources   Download

GPL

The Requires

 

debug symfony websocket dump