PHP code example of karontek / bcons

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

    

karontek / bcons example snippets


use Karontek\Bcons\Bcons;

$console = new Bcons('your project token');

$console->log($currentUserData);
$console->warn("Zip code not available for user $userId");
$console->error("No user with id $userId found");

$console->group('User info')->log($userData)->warn('No zip code available')->groupEnd();

  for ($x = 1; $x < 23; ++$x)
    $console->clog($x, "Message with color $x");
  

  $console->ping('Begin checkout process');