PHPackages                             bdk/debug-wamp-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. bdk/debug-wamp-client

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

bdk/debug-wamp-client
=====================

Html/Javascript WAMP based debug client used in conjunction with PHPDebugConsole on the server

v3.5(4mo ago)0240↓75%[3 PRs](https://github.com/bkdotcom/DebugWampClient/pulls)MITJavaScriptCI passing

Since Dec 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/bkdotcom/DebugWampClient)[ Packagist](https://packagist.org/packages/bdk/debug-wamp-client)[ Docs](http://github.com/bkdotcom/DebugWampClient)[ RSS](/packages/bdk-debug-wamp-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (23)Used By (0)

PHPDebugConsole WAMP Plugin/Client
==================================

[](#phpdebugconsole-wamp-pluginclient)

Debug your PHP applications (both web and console) in realtime.

Debug/log information is sent completely "out-of-bounds" via websockets. Since log data isn't sent in the message body or headers of your application, we can debug any request method (including ajax and console application) without affecting the application's output.

All [PHPDebugConsole](https://github.com/bkdotcom/PHPDebugConsole) methods are supported.

### Overview

[](#overview)

There are 3 parts to this solution.

- This client. Think of this as an undocked (separate-windowed) browser console. Instead of viewing javascript stuff, it's PHP stuff†.
- [A WAMP (websockets protocol) router](http://wamp-proto.org/implementations/#routers) that serves as a middle man between this client and the PHP application
- The PHP application thats "publishing" log messages (via [PHPDebugConsole](https://github.com/bkdotcom/PHPDebugConsole))

All 3 components *can* be be running on the same server/environment, or be on 3 separate servers, it doesn't matter. I imagine in most cases, this client and the router will be installed on a local dev environment... aka your laptop.

> † PHPDebugConsole also supports output via plain 'ol `` output, ChromeLogger, &amp; FirePHP.. This WAMP solution isn't limited by what the browser's console can do and offers all of the same formatting and features of PHPDebugConsole's HTML output without the disadvantages of being included in the output of your application (or not supported with ajax &amp; CLI applications.

### Installation

[](#installation)

#### Prerequisite : Install Composer

[](#prerequisite--install-composer)

**Download Composer** (if not already installed) [more info](https://getcomposer.org/doc/00-intro.md#downloading-the-composer-executable)
`$ curl -sS https://getcomposer.org/installer | php`

---

#### 1. Client

[](#1-client)

**create a project directory in your webroot**

```
$ mkdir debugWampClient
$ cd debugWampClient

```

**Install this client**

(make sure you're in the project directory)

`$ php composer.phar require bdk/debug-wamp-client`

**Create an `index.php` for the client**

(this index.php should be created in the project directory)

```
