PHP code example of meneguetti / viscle

1. Go to this page and download the library: Download meneguetti/viscle 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/ */

    

meneguetti / viscle example snippets


\Viscle\Viscle::capture(); 

echo \Viscle\Viscle::render();

\Viscle\Viscle::capture();

$a = new \Viscle\Example\A;
$a->perform();

echo \Viscle\Viscle::render();

//inside public/index.php
lter\NamespaceWhitelist();
//We don't want our graph too long, right?! ;)
$filter->classes = [
    'App',
    'Viscle\Example' //it's just to rm();

echo \Viscle\Viscle::render();

//inside public/index.php
lter\NamespaceWhitelist();
$filter->classes = ['Application', 'Album', 'Viscle\Example'];

\Viscle\Viscle::capture($filter); 

...

//inside your controller/action

//just an example to show in graph
$a = new \Viscle\Example\A;
$a->perform();

echo \Viscle\Viscle::render();