1. Go to this page and download the library: Download arashjafari/dump-plus 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/ */
arashjafari / dump-plus example snippets
use ArashJafari\DumpPlus\DumpPlus;
// Sample array to dump
$colors = ['key1' => 'red', 'key2' => 'blue'];
// Default dump output
DumpPlus::dump($colors);
// Dump with syntax highlighting
DumpPlus::pretty($colors);
// Dump in simple format
DumpPlus::simple($colors);
// Dump for CLI output
DumpPlus::cli($colors);
// Dump in browser console
DumpPlus::console($colors);
// Dump in Javascript alert!
DumpPlus::alert($colors);
// Dump in JSON format
DumpPlus::json($colors);