PHP code example of bdk / debug-wamp-client

1. Go to this page and download the library: Download bdk/debug-wamp-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bdk / debug-wamp-client example snippets




 pass a debug instance so that the client can use the javascript & css it provides
$debug = \bdk\Debug::getInstance();
new \bdk\Debug\WampClient($debug);



$debug = new \bdk\Debug(array(
    'collect' => true,
));
$debug->addPlugin($debug->routeWamp);   // or $debug->setCfg('route', 'wamp'); to only output via the wamp plugin

$ php composer.phar